Re: return =

2018-09-05 Thread Waldemar Horwat
On 09/03/2018 11:32 AM, Isiah Meadows wrote: There is literally only one language I've seen that has anything like this, and it's Verilog, a hardware description language. (It's also of questionable utility, and it's restricted to just simulator-only constructs.) That's not an endorsement, more

Uncached modules

2018-09-05 Thread Isiah Meadows
I'd like to have the ability to define a module that is cached per-module rather than globally on import. Maybe something like this, defined only for modules: ```js // Creates a new constant read-only proxy to parent `import.meta`, // limits caching to just this one parent module. import from

Destructuring instances with private fields

2018-09-05 Thread kdex
Often times, when I use a class field a lot, I create a local binding for it, so that I don't have to prefix every appearance with `this.`: ```js class Foo { bar = 1; method() { const { bar } = this; /* … */ } } ``` The same approach would