I also choke on the whole "Interface" thing. We don't need those either. Just create a class with a bunch of
raise 'Not Implemented'
statements for all the method implementations. Anybody subclassing the class would be forced to implement the methods. We could even have a meta-class for it that checks that all the methods are implemented - again, no need for extended syntax.One of the things I like most about python is its consistency: things usually work the same way. Let's keep it nice, simple and predictable.
On a slightly related note I see that the BDFL is considering wiping out
map
, filter
and reduce
. I applaud this since the list comp syntax neatly handles these functions' roles.
1 comment:
Come, join the Ruby flock, my son.
Post a Comment