python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Can invalid signature errors ever trigger at runtime if code has been statically checked by Sorbet?
I was looking through the list of Sorbet runtime errors from the docs. It seems to me that "Errors from invalid sig procs" and "Errors from invalid sigs" would be caught by the Sor...
Bill C
Votes: 0
Answers: 1
How can I resolve sorbet error: "Constants must have type annotations with T.let when specifying # typed: strict"?
This is similar to my question in How can I resolve sorbet error: "Use of undeclared variable"?, but for constants.
I am experimenting with adding sorbet type information to my gem, pdf-read...
James Healy
Votes: 0
Answers: 1
Resolving "code is unreachable" in sorbet
I maintain the pdf-reader ruby gem, and I'm experimenting with static type checking via sorbet.
I have a particular source file that's currently typed: false, and I'd like to change it to typed: true....
James Healy
Votes: 0
Answers: 1
Confusion on when to use T.let vs. T.cast
Based on: https://sorbet.org/docs/type-assertions
In my mind, T.cast seems like a more powerful version of T.let. T.cast(expr, type) forces Sorbet to accept expr as type, even if expr cannot be static...
Billy the Kid
Votes: 0
Answers: 1