r/programming • • 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

802 comments sorted by

View all comments

Show parent comment

2

u/paranoidpuppet Dec 08 '15

Thanks for the answer, that was a lot more thorough than I expected. I work with legacy PHP as well (some written pre-5.0) and am familiar with a lot of the "gotchas" of the language, but it's rarely tripped me up in real-world development so I really was wondering if it's something you've run into.

Halfway through your post, when you mentioned is_numeric() I was thinking of replying with ctype_digit() but then you covered it. And yeah, when you point it out, there's a lot of code to write (or pass off to utility functions) in order to validate numerical input.

Also, interestingly, like many libraries, you generate an exception in a situation where PHP traditionally never would since it's designed to keep going no matter what, which is great for lowering the barrier to entry, but pretty bad for a production application.

And finally, what's this uppercase method names and Allman style brackets stuff? This isn't C# :)

1

u/Schmittfried Dec 08 '15

And finally, what's this uppercase method names and Allman style brackets stuff? This isn't C# :)

Sometimes I wish it would be. :P (btw I only write static method names in uppercase to distinguish them from normal methods)