Re: Add support for arbitrary code inside template tags without the 'do' keyword

2016-01-13 Thread Isiah Meadows
A use I thought up (although I got lazy and abandoned it later) was an `exec` template tag, for executing commands. Or, and this just came off the to of my head, you could use it as a vdom library as almost like a Lisp reader macro: ```js n`.form-ctrl`( n`input#input`("input"),

Re: Add support for arbitrary code inside template tags without the 'do' keyword

2016-01-13 Thread /#!/JoePea
> modulo the obvious mistake Oops. x] > you could use it as a vdom library as almost like a Lisp reader macro: That would be interesting. There's still lots of runtime processing though. Maybe a build-time tool can also optimize it though, but if it happens to be executed at runtime it'll just

Re: Promises as Cancelation Tokens

2016-01-13 Thread Benjamin Gruenbaum
*F# cancellation* - on second thought implicit cancellation through cancellation like in F# is impractical because of the eagerness of promises. I don't think it's a valid alternative here. I've discussed this with Reed Copsey (an F# expert) and he explained the philosophy behind it to me - it

Re: Specifying the Existential Operator using Abrupt Completion

2016-01-13 Thread Claude Pache
> Le 13 janv. 2016 à 18:06, C. Scott Ananian a écrit : > > On Wed, May 21, 2014 at 8:33 AM, Claude Pache > wrote: > > I have thought about the right semantics (and the issues) of the existential > operator. > >

Re: Add support for arbitrary code inside template tags without the 'do' keyword

2016-01-13 Thread Isiah Meadows
Problem is: your idea has already been tried and found to be pretty slow. React devs did briefly consider this, but found that it had fundamental speed limitations. And precompilation is already happening with existing templates, even though building them normally is still cheap to do.

Re: Add support for arbitrary code inside template tags without the 'do' keyword

2016-01-13 Thread Isiah Meadows
That link details other reasons, such as tooling. On Wed, Jan 13, 2016, 18:11 Isiah Meadows wrote: > Problem is: your idea has already been tried and found to be pretty slow. > React devs did briefly consider this, but found that it had fundamental > speed limitations.

Re: Add support for arbitrary code inside template tags without the 'do' keyword

2016-01-13 Thread /#!/JoePea
Interesting! On Wed, Jan 13, 2016 at 3:12 PM, Isiah Meadows wrote: > That link details other reasons, such as tooling. > > > On Wed, Jan 13, 2016, 18:11 Isiah Meadows wrote: >> >> Problem is: your idea has already been tried and found to be pretty

Re: Specifying the Existential Operator using Abrupt Completion

2016-01-13 Thread C. Scott Ananian
On Wed, May 21, 2014 at 8:33 AM, Claude Pache wrote: > > I have thought about the right semantics (and the issues) of the > existential operator. > > user.getPlan?().value?.score; > > The intended semantics of `?` is that, whenever its LHS evaluates to > `null` or