--- 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]
Binary file slides/slides01.pdf has changed
--- 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