[Info-vax] Rust as a HS language, was: Re: Quiet?

Arne Vajhøj arne at vajhoej.dk
Mon Apr 4 15:09:48 EDT 2022


An example of very breaking language change: Scala 2 to 3.

Example code:

object Ooops {
   def main(args: Array[String]): Unit = {
     println("start")
     val b = false
     if(b) {
       println("1")
       println("2")
     }
     if(b)
       println("3")
       println("4")
     println("finish")
   }
}

It compiles/runs fine with both Scala 2 and 3.

But it does not print the same output.

:-(

Arne



More information about the Info-vax mailing list