↧
Scala Wonderland #1: All operations are method calls
I’ve started learning Scala two months ago and I can’t get back to Murakami’s 1Q84 so exciting it is. In the coming series I’d like to share my excitement with you. It won’t be yet another step-by-step...
View ArticleScala Wonderland: Lists
In functional style methods should not have side effects. A consequence of this philosophy is that List is immutable in Scala. Construction of a List is simple. val abc = List("a", "b", "c") There is...
View ArticleScala Wonderland: Semicolons, singletons and companion objects
In Scala you may usually omit semicolon at the end of a statement. It is required if more statements are on a single line. Unfortunately there are cases when compiler doesn’t undrstand the code as you...
View Article