Re: Share a secret across ES6 specific modules, so that other modules cannot access the secret?

2018-04-15 Thread /#!/JoePea
> GATEWAY That's an interesting idea, Bradley, thanks! I originally wanted this for implementing "protected" class members (i.e. sharing a WeakMap across subclasses in different files), but I've since done this another way that is even better: https://github.com/trusktr/lowclass. With lowclass we

Re: Share a secret across ES6 specific modules, so that other modules cannot access the secret?

2018-04-15 Thread Mike Samuel
The box function defined in github.com/mikesamuel/tc39-module-keys enables things like this. On Sun, Apr 23, 2017 at 4:42 PM, /#!/JoePea wrote: > Is there a way to share some secret value across a few modules, and > prevent other modules? f.e. prevent modules of an app dev who is importing > mo

Re: Share a secret across ES6 specific modules, so that other modules cannot access the secret?

2018-04-15 Thread /#!/JoePea
Ah, interesting! That would be useful! */#!/*JoePea On Sun, Apr 15, 2018 at 11:58 AM, Mike Samuel wrote: > The box function defined in github.com/mikesamuel/tc39-module-keys > enables things like this. > > > On Sun, Apr 23, 2017 at 4:42 PM, /#!/JoePea wrote: > >> Is there a way to share some s

Re: [strawman] Symbol.thenable proposal

2018-04-15 Thread Isiah Meadows
Not sure how this is relevant, since this is about types rather than identity, and I'd say typing values is *far* from a solved problem beyond the basic concept of "all values have a type"...\* ;-) \* https://en.wikipedia.org/wiki/Type_system - Isiah Meadows m...@isiahmeadows.com Looking fo

RE: [strawman] Symbol.thenable proposal

2018-04-15 Thread doodad-js Admin
I mean you could have an interface IThenable that you implement to a class/constructor. Then each instantiated object of such class/constructor can be "identified" as a Thenable. Yes, that involves a type system. -Original Message- From: impinb...@gmail.com On Behalf Of Isiah Meadows Se

RE: [strawman] Symbol.thenable proposal

2018-04-15 Thread me
that's the protocol proposal i mention on my proposal repo (https://github.com/devsnek/proposal-symbol-thenable)-Gus___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss