lunduniversity / introprog

Teaching material for "Introduction to Programming using Scala" at Lund University, LTH. http://cs.lth.se/pgk/
142 stars 171 forks source link

Update lect-w01-intro.tex to improve clarity #656

Closed HampSwe closed 2 years ago

HampSwe commented 2 years ago

As "scala-cli" has "run" as a command, a beginner who has used the command "scala-cli run ." previous to reading this might mistakenly believe that "scala" also has the command "run". However, it doesn’t: "run" only refers to the main function in this example. It would therefore be more pedagogical if the main function was called something different (like "hi").

bjornregnell commented 2 years ago

Thanks! Good idea! Next year hopefully scala-cli will be the new scala, but it still can be mixed up with the name of the sub-command conceptually.