Re: Ternary operator enhancement proposal

2019-11-12 Thread Jacob Pratt
Aside from the fact that using a non-reserved identifier would break back-compatibility, I'm fairly certain pattern matching would allow for not recalculating the value while also being far more readable. On Tue, Nov 12, 2019, 21:43 devlato wrote: > Hey folks, > > not sure if you haven't

Ternary operator enhancement proposal

2019-11-12 Thread devlato
Hey folks, not sure if you haven't discussed something similar, but what do you think about making an enhancement for the ternary operator, to make it more powerful? I've created a small explanatory doc on GitHub: https://github.com/devlato/proposal-ternary-placeholder Warmest regards, Denis

Re: Array.prototype.sort( callbackfn [ , thisArg ] )

2019-11-12 Thread Michaƫl Rouges
About arrow functions/binding, it's just a principle, I try to never create some function on-the-fly, I'm working only by immutable objects derivation. But, ok, if no choice, I'll do that. ;) ___ es-discuss mailing list es-discuss@mozilla.org