@0x1C3B00DA to Rust Programming • 1 year agoToo many words about Rust's function syntaxsteveklabnik.commessage-square2arrow-up18arrow-down10
arrow-up18arrow-down1external-linkToo many words about Rust's function syntaxsteveklabnik.com@0x1C3B00DA to Rust Programming • 1 year agomessage-square2
minus-squareEpheralink4•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 }