Re:Ruby 3.0
by jonnytran on Friday December 25, 2020 @02:44PM
(#25538539)
Yes. Why the f is len() a function in Python? From a design perspective, it makes absolutely no sense. You have to implement the __len__() method in order for the len() function to work. Why isn't it just a method?! And that is the one "right" way to do it. Drives me crazy. And there are countless other examples like that.
[ Parent
| on HN ]
There are no comments on this comment yet.