Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's strongly typed, but it's also duck typed. Also, in ruby everything is an object, even the class itself, so type checking there is weird.

Sure it stops you from running into "'1' + 2" issues, but won't stop you from yeeting VeryRawUnvalidatedResponseThatMightNotBeAuthorized to a function that takes TotalValidatedRequestCanUseDownstream. You won't even notice an issue until:

- you manually validate

- you call a method that is unavailable on the wrong object.



You just described why I fell out of love with Ruby.


Because you wanted to do 1 + '1'?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: