One of my deepest regrets is Ruby vs Rust
Would a closure wear arguments
{|like, this| }
Or
|like, this| {}
Conversation
Old-JS closures traded off too many characters for syntax not specific to the problem domain. That makes it messy and annoying to write and read. But I agree that having great editor support is important too.
In my editor I want to write 'fun' then have it expand to a non-ambiguous lambda, where I can fill in the args and the body. Perhaps having a non-textual AST editor conceal the noise of the underlying serialized form.
1


