this post was submitted on 27 Jan 2023
7 points (100.0% liked)

Rust Programming

8431 readers
21 users here now

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 2 years ago

Yeah, I'm quite fond of the Scala syntax:

val a: Int = 1
val b = 1
val c = {
  1+1
}

def foo(x: Int): Int = x+1
def bar(x: Int): Int = {
  x+1
}