|
|
|
|
|
by upquark
3522 days ago
|
|
Your annoyingly patronizing tone aside, I'll try to address what you're saying. > ...the class hierarchy: as an example, in Pharo Smalltalk you have the following hierarchy: ProtoObject -> Object -> Collection -> SequencableCollection -> ArrayedCollection -> String Seems ridiculously over-engineered to me, but whatever, let's keep going.. > with the "reduce" method being declared on Collection class (reduce being the easiest way to implement "join"). 'reduce' and 'join' are very different things. one is a generic function (aka fold, also exists in python as 'reduce'), the other is a string concatenation method that takes an iterable and produces a string. the latter can be implemented via the former, but they're not the same thing. no one's stopping you from using 'reduce' in Python instead of the built-in string member function 'join', btw. > So in short: no. There are many interesting languages which implement various interesting techniques which solve various problems Ugh, i give up :) |
|