mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-14 15:47:59 +01:00
This is technically redundant since it's equivalent to:
var f = Fn.new { ... }
But it seems worth adding if we're going to make functions and a
functional/procedural style intuitive and natural in Wren. It's a bit
of sugar, but it doesn't hurt much to add and makes the code read a
lot better.
3 lines
44 B
Plaintext
3 lines
44 B
Plaintext
fn f() {}
|
|
System.print(f()) // expect: null
|