|
|
|
|
|
by gregwebs
5664 days ago
|
|
Generally speaking I like interfaces, but Ruby is so dynamic that you couldn't use them for compile-time guarantees. Interfaces could only get you a slightly nicer way of dynamic duck typing. I wouldn't really call all of the dynamism a strength though - one of the limiting factors of compile time evaluation here is that a method can later become undefined- when is the last time you needed that? |
|
1: http://www.ruby-doc.org/core-1.9/classes/BasicObject.html