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
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
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
3 matches
Mail list logo