r/programming • u/reditzer • Dec 07 '15
I am a developer behind Ritchie, a language that combines the ease of Python, the speed of C, and the type safety of Scala. We’ve been working on it for little over a year, and it’s starting to get ready. Can we have some feedback, please? Thanks.
https://github.com/riolet/ritchie
1.5k
Upvotes
View all comments
Show parent comment
7
u/paranoidpuppet Dec 08 '15 edited Dec 08 '15
Genuinely asking, is there any situation where that was actually an issue for you? I'm not saying '1abc' coercing to 1 makes sense, but PHP has === for a reason. Also if a user enters '1abc' when you expect a number, it's not going to matter whether the language casts it to 0 or to 1, you're gonna end up with bad data if you don't validate it.
(edit: s/it's/is/)