Remix.run Logo
bvrmn a day ago

From typing perspective there is no sense to have Container[T].join() -> str for any T.

mystifyingpoi a day ago | parent [-]

I agree, but from convenience perspective there is a lot of sense. Java Streams is actually a good example of a "correct" design, but not very convenient.

bvrmn 4 hours ago | parent [-]

That's my point. Python has convenient and good type design with str.join ignored by other languages.

For example I'm lost which abstract class to inherit in Scala to obtain mkString for my custom container.