Re:Clojure vs. Scala
by frowaway001 on Tuesday December 24, 2013 @06:03PM
(#6961468)
You are kind of either ignoring or not knowing the core use-case of CanBuildFrom. Why talk about things you don't understand?
Re:Clojure vs. Scala
by profdemarco on Tuesday December 24, 2013 @08:24PM
(#6961837)
The reasons other than the ones I've outlined are caused by implementation details and wouldn't exist if they chose the correct abstractions.
Re:Clojure vs. Scala
by frowaway001 on Wednesday December 25, 2013 @02:31AM
(#6962501)
That's wrong.
In the rare cases where you actually need to convert between collection types, it's usually trivial and more efficient to do it manually. Essentially they've added tons of complexity for negligible benefit. One of my main gripes with the Scala collections library is that it's overly complex and that this complexity has been the source of hundreds of bugs.
If there was any real benefit to the way it's currently done they wouldn't be hiding the true type signature for things like `List.map` in the official Scaladocs.