Closed aleclarson closed 5 years ago
Why was the explicit fn added? Why not..
fn
# Function literals let foo = (a, b): void { doSomething(a, b) # this return value is ignored because `: void` } let bar = async iter (a, b) { yield await doSomething(a, b) } # Function types type Foo = (a, b): void
Because consistency:
let v = fn (...) {...} let v = if (...) {...} let v = for (...) {...} let v = match (...) {...} let v = while (...) {...}
Why was the explicit
fn
added? Why not..