[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: simply question about syntatic sugar
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 7 Jun 2015 10:57:08 +0200
On Sun, Jun 7, 2015 at 4:09 AM, Rena <hyperhacker@gmail.com> wrote:
> unusual. What I've seen in some dialects is that it automatically
> creates a closure; i.e. `f = v:abs` means the same as `f =
> function(...) return v:abs(...) end`.
That's how I would read it, and how it works in Moonscript.
The fact that people have very different meanings attached to the
ambiguous syntax v:abs means that it is a bad idea.