0x1C3B00DA@lemmy.ml to Rust Programming@lemmy.ml · 2 years agoToo many words about Rust's function syntaxsteveklabnik.comexternal-linkmessage-square2fedilinkarrow-up17arrow-down10
arrow-up17arrow-down1external-linkToo many words about Rust's function syntaxsteveklabnik.com0x1C3B00DA@lemmy.ml to Rust Programming@lemmy.ml · 2 years agomessage-square2fedilink
minus-squareEphera@lemmy.mllinkfedilinkarrow-up4·2 years 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:
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 }