Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: