Too many words about Rust's function syntaxsteveklabnik.com 0x1C3B00DA ( @0x1C3B00DA@lemmy.ml ) Rust Programming@lemmy.ml • 1 year ago message-square2fedilinkarrow-up16
arrow-up16external-linkToo many words about Rust's function syntaxsteveklabnik.com 0x1C3B00DA ( @0x1C3B00DA@lemmy.ml ) Rust Programming@lemmy.ml • 1 year ago message-square2fedilink
minus-square Ephera ( @Ephera@lemmy.ml ) linkfedilink4•1 year agoYeah, 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 }
Yeah, I’m quite fond of the Scala syntax: