News for hackers. Stuff that matters.
Re:Future JavaScript: what is still missing? by k__ on Sunday January 27, 2019 @10:57AM (#19012144)
Is it even a useful feature?

Will it lead to many JS bugs simply disappearing and applications getting more stable or will it just obfuscate bugs in the long run?

Re:Future JavaScript: what is still missing? by realharo on Sunday January 27, 2019 @11:11AM (#19012221)
Presumably people will only use it in situations where null (or undefined, or however it works) is a valid and expected value for a particular property.

In TypeScript, these properties would explicitly have a `MyType|null` or `MyType|undefined` type.

Re:Future JavaScript: what is still missing? by spiritcat on Sunday January 27, 2019 @11:44AM (#19012417)
Roughly speaking, one less place where we need to use lodash.

"or will it just obfuscate bugs in the long run?"

Probably. :shrug emojii:

But more stable in the sense of turning hard crashes into UI quirks.