CSC302 2011S, Class 12: Scala (1) Overview: * Lab. Admin: * Using second unexcused absence: AT * As you might expect, Assignment 5 won't get posted until late tonight. (Maybe sooner if Aaron posts it.) * The fire on Wednesday was two doors south of us. Front page news! * Reading for Sunday night: Tate 5.3. * Our Web server appears to be down. You can access the lab at /home/rebelsky/Web/Courses/CSC302/2011S/Labs/scala-1.{html,pdf}. * EC for CS Table today. Lab * You can load a file with :load file * However, if loading a file fails, the various keys no longer work correctly. Yay good software design! * What do you do if you want arbitrarily large integers? var x = 12345678901 does not work var x: BigInt = 12345678901 * Tail recursion * Removes obvious tail recursion What do you think about Scala so far * More natural than Io and Prolog def fun(x: Int): Int = 2+x * Still doesn't type infer as well as I'd like def fun(x) = 2 + x * What else seemed important