Re: Generalizable Function Modifier Syntax

2014-03-17 Thread Kevin Smith
Thanks, Brendan! This lines up with what Luke Hoban presented at the last TC39 meeting. So far, so good (but not a done deal by any means, of course). The main bone of contention is the use of ! in promises future-proposed syntax. ! won't work, in my opinion. Besides being an eyesore, it

Re: Generalizable Function Modifier Syntax

2014-03-15 Thread Brendan Eich
Kevin Smith wrote: async function af() {} { async af() { } } This lines up with what Luke Hoban presented at the last TC39 meeting. So far, so good (but not a done deal by any means, of course). The main bone of contention is the use of ! in promises future-proposed syntax. The

Generalizable Function Modifier Syntax

2014-03-13 Thread Kevin Smith
While working on async functions, it has become apparent to me that we are missing a generalizable syntax for function modifiers. The current precedent for function modifiers is generators: function* ... { *name() {} } Unfortunately, this precedent requires that all modifiers be