3 ms·
OOP interface is wrong for this functionality. It should be a free function. There is no reason it should be restricted to strings -- "join" makes sense on any
by blt 6y ago
OOP interface is wrong for this functionality. It should be a free function. There is no reason it should be restricted to strings -- "join" makes sense on any sequence-like objects. We should be able to join(Iter1, Iter2[Iter3]) where Iter* are all arbitrary iterable data types.
- creata 6y agoI agree: you can definitely make it generic in both arguments. I was just arguing that this order of arguments makes more sense.