|
|
|
|
|
by cmmartin
2876 days ago
|
|
Are you asking how they are implemented? You'll have to read the compiler code for that. But the documentation does tell you... "No runtime type errors, ever. Every bit of Grain you write is thoroughly sifted for type errors, with no need for any type annotations." So you never write them, but you get all the benefits as if you did. |
|
But how's that possible in general? Example, JSON parsing of data from a HTTP request. This is pseudo code
The last line is either a compiler error (how? forbidding input is not an option) or a runtime error (Grain doesn't have that) or what?