equal
deleted
inserted
replaced
19 \item Do not use any mutable data structures in your |
19 \item Do not use any mutable data structures in your |
20 submissions! They are not needed. This means you cannot create new |
20 submissions! They are not needed. This means you cannot create new |
21 \texttt{Array}s or \texttt{ListBuffer}s, for example. |
21 \texttt{Array}s or \texttt{ListBuffer}s, for example. |
22 |
22 |
23 \item Do not use \texttt{return} in your code! It has a different |
23 \item Do not use \texttt{return} in your code! It has a different |
24 meaning in Scala than in Java. |
24 meaning in Scala than in Java. It changes the meaning of your program, |
|
25 and you should never use it. |
25 |
26 |
26 \item Do not use \texttt{var}! This declares a mutable variable. Only |
27 \item Do not use \texttt{var}! This declares a mutable variable. Only |
27 use \texttt{val}! |
28 use \texttt{val}! |
28 |
29 |
29 \item Do not use any parallel collections! No \texttt{.par} therefore! |
30 \item Do not use any parallel collections! No \texttt{.par} therefore! |