3 ms·
I thought the same. After how consistent Scala's syntax is, it's hard to adjust to what Rust has done here. In Scala val hello : String = "hello" // eagerly
by kag0 6y ago
I thought the same. After how consistent Scala's syntax is, it's hard to adjust to what Rust has done here. In Scala
val hello : String = "hello" // eagerly evaluated once
def hello : String = "hello" // evaluated every time
def hello(name: String) : String = s"hello $name" // parameters