Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
Scala /
the REPL
Scala has an interactive shell. It's like the Python shell, but technically it's not an interpreter. Whenever you make something evaluate, it creates a temporary file, compiles it, and executes it. It happens behind the curtain, but it's good to know. So instead of "Scala interpreter", call it "the REPL" :)
scala> 4 * 9 + 20 res0: Int = 56 scala> res0 + 4 res1: Int = 60 scala> res1 * 4 res2: Int = 240 |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |