@0x1C3B00DA@lemmy.ml to Rust Programming@lemmy.ml • 1 year agoToo many words about Rust's function syntaxsteveklabnik.commessage-square2fedilinkarrow-up17arrow-down10
arrow-up17arrow-down1external-linkToo many words about Rust's function syntaxsteveklabnik.com@0x1C3B00DA@lemmy.ml to Rust Programming@lemmy.ml • 1 year agomessage-square2fedilink
minus-squareEpheralinkfedilink4•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:
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 }