9) No equivalent, there is no parallel stuff built into Gosu as of yet.
10) No equivalent, there is no operator overloading in Gosu.
I agree with the comment above pointing out that all of this is available (or easy to mimic) in most high level languages.
However, I think that the different flavor of Gosu and Scala is apparent from this list: Scala tends towards abstraction, reusing .reduceLeft() and the magic underscores to express things, whereas Gosu has distinct functions for common operations and requires named closure arguments. Our take is that this makes Gosu code easier to understand and maintain but, of course, that is subjective.
1) (1..10).map( \ i -> i * 2 )
2) (1..1000).sum()
3) words.hasMatch( \ word -> tweet.contains( word ) )
4) var fileText = new File("data.txt").read()
5) (1..4).map( \ i -> "Happy Birthday " + (i == 3 ? "dear Name" : "to You") ).each( \ l -> print( l ) )
6) var map = {49, 58, 76, 82, 88, 90}.partition( \ i -> i > 60 )
Note: partition() in Gosu is not limited to a true/false codomain.
7) var x = XmlElement.parse( new URL("http://www.yahoo.com/) )
8) {14, 35, -7, 46, 98}.min() or {14, 35, -7, 46, 98}.max()
9) No equivalent, there is no parallel stuff built into Gosu as of yet.
10) No equivalent, there is no operator overloading in Gosu.
I agree with the comment above pointing out that all of this is available (or easy to mimic) in most high level languages.
However, I think that the different flavor of Gosu and Scala is apparent from this list: Scala tends towards abstraction, reusing .reduceLeft() and the magic underscores to express things, whereas Gosu has distinct functions for common operations and requires named closure arguments. Our take is that this makes Gosu code easier to understand and maintain but, of course, that is subjective.
It's just that we're right.
;)