10 \fnote{\copyright{} Christian Urban, King's College London, 2020} |
10 \fnote{\copyright{} Christian Urban, King's College London, 2020} |
11 |
11 |
12 \section*{Scala in 6CCS3CFL} |
12 \section*{Scala in 6CCS3CFL} |
13 |
13 |
14 For the coursework in this module you are free to use any programming |
14 For the coursework in this module you are free to use any programming |
15 language you like, but I will show you all my code using Scala---I hope |
15 language you like, but I will show you all my code using Scala---I |
16 you have fond memories of Scala from PEP. But as said, you do not need to |
16 hope you have fond memories of Scala from PEP. But as said, you do not |
17 use Scala for your own code.\footnote{Haskell, Rust, Ocaml were other languages that have been used previously in CFL. I recommend to not use Java or C for writing |
17 need to use Scala for your own code.\footnote{Haskell, Rust, Ocaml |
18 a compiler, but if you insist, nothing I can do.} I will use the current |
18 were other languages that have been used previously in CFL. I |
19 stable version of Scala, which is 2.13.3. If you need a reminder of |
19 recommend to not use Java or C for writing a compiler, but if you |
20 the Scala handouts for PEP have a look |
20 insist, feel free.} I will use the current stable version of |
|
21 Scala, which is 2.13.3. If you need a reminder of the Scala handouts |
|
22 for PEP have a look |
21 \hr{http://talisker.nms.kcl.ac.uk/cgi-bin/repos.cgi/pep-material/raw-file/tip/handouts/pep-ho.pdf}\bigskip |
23 \hr{http://talisker.nms.kcl.ac.uk/cgi-bin/repos.cgi/pep-material/raw-file/tip/handouts/pep-ho.pdf}\bigskip |
22 |
24 |
23 \noindent |
25 \noindent |
24 The main difference to the Scala I showed you in PEP is that in CFL |
26 The main difference to the Scala I showed you in PEP is that in CFL |
25 I will use the Ammonite REPL |
27 I will use the Ammonite REPL |