Re:Grain: A strongly-typed functional programming language f...
by cmmartin on Wednesday August 01, 2018 @02:59PM
(#17665802)
I imagine the result here would be the same as in Javascript. This is not an error in Javascript. It would concatenate them and convert to a string. So, you would get the string "3a string". I do see your point though and now agree there should be more documentation covering these cases
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?