Hacker News new | ask | show | jobs
by thebluesky 5269 days ago
I'd like to see greater integration into the libraries and commonly used types. Strings in Scala for example let you perform all manner of filtering and other functional operations. Collections in Scala also support operations like map, filter and partition etc. Scala feels more like a fusion between functional and object-oriented programming, rather than a slightly prettier Java with closures.
2 comments

Kotlin is in preview. They explicitly said they plan to extend java types like String and add a lot of stdlib stuff. Just don't forget that scala is 10 years old, while Kotlin is 6 months.
I think Xtend has extension methods for any Iterable that do what you want: http://download.eclipse.org/modeling/tmf/xtext/javadoc/2.0.1...

Point taken on Strings though - in this situation you'd want String to extend Iterable but it doesn't for historical reasons.