# HG changeset patch # User Christian Urban # Date 1478778110 0 # Node ID 40424bbe109e339dade2b049782fa5fb7d4084c7 # Parent b6cb302633eb618a6a3fd16538497e8a8e34af6e updated diff -r b6cb302633eb -r 40424bbe109e progs/lecture1.scala --- a/progs/lecture1.scala Thu Nov 10 10:40:05 2016 +0000 +++ b/progs/lecture1.scala Thu Nov 10 11:41:50 2016 +0000 @@ -24,6 +24,8 @@ lst(0) lst(2) +// some alterative syntax for lists + 1::2::3::Nil List(1, 2, 3) ::: List(4, 5, 6) @@ -74,13 +76,13 @@ /* Scala is a strongly typed language - * Base types + * some base types Int, Long, BigInt, Float, Double String, Char Boolean - * Compound types + * some compound types List[Int], Set[Double] diff -r b6cb302633eb -r 40424bbe109e slides/slides01.pdf Binary file slides/slides01.pdf has changed diff -r b6cb302633eb -r 40424bbe109e slides/slides01.tex --- a/slides/slides01.tex Thu Nov 10 10:40:05 2016 +0000 +++ b/slides/slides01.tex Thu Nov 10 11:41:50 2016 +0000 @@ -79,9 +79,13 @@ \frametitle{Why Scala?} \begin{itemize} -\item compiles to the JVM\\ (also JavaScript, native X86 in the works)\medskip +\item compiles to the JVM\\ + \textcolor{gray}{(also JavaScript, native X86 in the works)}\medskip \item integrates seamlessly with Java\medskip \item combines \underline{\bf functional} and {\bf object-oriented} programming\bigskip +\item it is a bit on the ``mathematical'' side\\ + \textcolor{gray}{(no pointers, no \texttt{null})} + \item often one can write very concise and elegant code \end{itemize}\bigskip\medskip