Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Scala is a general purpose programming language principally targeting the Java Virtual Machine. Designed to express common programming patterns in a concise, elegant, and type-safe way, it fuses both imperative and functional programming styles.
25
votes
Accepted
Is there a canonical book on Scala?
I can advise Programming in Scala because it's from the creator of the Scala language: Martin Odersky. … He describes most of the features of Scala very detailedly and explains, why he chose this feature instead of an other one. Therefore, the reader gets a deep insight into Scala. …
0
votes
Why does Scala use the '_' operator for package import instead of '*' as in Java?
In Scala there are dozens of places where the underscore is used. Using it for wildcard imports is just a logical consequence. …
5
votes
Accepted
How do I initialize a Scala map with more than 4 initial elements in Java?
final Map<String, String> map = Predef$.MODULE$.Map().apply(wa);
System.out.println(map);
}
}
Thus, I emphasize not to use a decompiler but the internal representation of the AST in scalac:
$ scala …
3
votes
Case Class naming convention
In Scala there exist package objects. …