Suggestion: Infix operators/functions

2018-02-02 Thread Thomas Grainger
function f(x) { } function g(y) { } (f '.' g)(x); // z ``` Thomas Grainger ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Cloning WeakSet/WeakMap

2018-02-09 Thread Thomas Grainger
I think this is referring to cloning a WeakSet into another WeakSet Thomas Grainger On 9 February 2018 at 15:01, David Bruant <bruan...@gmail.com> wrote: > Hi, > > My understanding is that cloning a WeakSet into a Set would remove all its > properties related to security and

Re: Feature Proposal - async variables (like thread local storage from C)

2018-03-11 Thread Thomas Grainger
I'm pretty sure this is Zones On 11 Mar 2018 15:35, "Guy Margalit" wrote: > Hey > > It's my first attempt to contribute to ECMAScript so would love your > feedback if I better off change how I go about it. > > The problem I want to highlight is that besides argument passing

Re: Re: Add "???" Unimplemented

2018-04-04 Thread Thomas Grainger
const ɁɁɁ = () => { throw new Error('Method not defined'); }; Thomas Grainger On 26 March 2018 at 06:26, Isiah Meadows <isiahmead...@gmail.com> wrote: > Even in TypeScript, `never` (the type of functions that never return - > throwing ≠ returning) is the subtype of *all* types,

Re: add reverse() method to strings

2018-03-17 Thread Thomas Grainger
String.prototype.reverse() might break web compatibility, how about String.prototype.turnyRoundy()? On 17 Mar 2018 18:47, "Claude Pache" wrote: > > > Le 17 mars 2018 à 19:29, Oriol _ a écrit : > > Be aware your code breaks pair surrogates,

Re: Proposal: if variable initialization

2018-03-21 Thread Thomas Grainger
Is this sarcastic? On 21 Mar 2018 12:58, "kai zhu" wrote: > this is why let and const should *never* have been introduced. if we had > stuck with just var, none of these petty-arguments and bickering among > team-members/shops on scoping-styles that ultimately have *zero*

Re: Improved syntax for observable mapping and subscribing

2018-03-23 Thread Thomas Grainger
You can convert an observable into an async iterator. You have to choose between discarding or buffering uniterated items On 23 Mar 2018 14:39, "Bob Myers" wrote: > Could someone jog my memory about proposals for better syntax for > observable mapping and subscribing, if any? > >