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

But then in Ruby if you want to you can encapsulate behaviour and your intent in objects instead of types - as concepts become more complex, you may introduce an object which encapsulates the data and provides checked interfaces for it.

I think the idea is that a strong static type system will allow you to describe the constraints idiomatically and concisely, whereas describing them using the usual OOP tools gets overkill very quickly.



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

Search: