Re:Web-based editor for Kotlin, JetBrains' new JVM language
by thebluesky on Thursday January 12, 2012 @04:57AM
(#3455717)
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.
[ Parent
| on HN ]
Re:Web-based editor for Kotlin, JetBrains' new JVM language
by Raphael_Amiard on Thursday January 12, 2012 @05:16AM
(#3455755)
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.
Re:Web-based editor for Kotlin, JetBrains' new JVM language
by njs12345 on Thursday January 12, 2012 @05:11AM
(#3455742)
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.