13 ms·
Beying somewhat of a functinal fanboy i really like Scalas (and oder functinal languages) point free style. Instead of: listOfThings.foreach(x => println(x))
by LordHeini 8y ago
Beying somewhat of a functinal fanboy i really like Scalas (and oder functinal languages) point free style.
Instead of:
listOfThings.foreach(x => println(x))
You can just type
listOfThings foreach println
Type inference is also great.
Scala in general has lots and lots of syntactic sugar, which is kind of the point of Scala.
Honroable mention:
Rubys &. operator
instead of
y = x.nil? ? nil : x.foo
y = x&.foo
Or just use a language which has some sort of null savety like Option types.