Hacker News new | past | comments | ask | show | jobs | submit login

That's not an example of a strongly typed method in Ruby. That's an example of an assertion (most likely implemented in C).

Though in hindsight you're right anyways. Methods define an implicit type for the arguments they operate over. It's just you don't know what it is without reading the whole method. Which I think gets to "expressiveness".




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

Search: