Sebastian
Sebastian
@keithamus That's not necessarily how it might work since the semantics for it haven't been invented yet. :smile: What @wycats said was that it's problematic to rush into adding additional...
What's ambiguous with decorators and how inheritance is handled?
The new descriptor would shadow the super one. Descriptors can be modified (it's the point of decorators) so it's impossible to track for inheritance.
You can't track where the original value is so you can't inherit descriptors. ``` javascript function foo(target, name, descriptor) { var value = descriptor.value; descriptor.value = function () { return...
You can't track where the original method is so you can't "replace" it.
Function calls are good because they allow you to validate the input at runtime and produce useful stack traces.
@NekR Yep, that's why there's facebook/react#3228.
@NekR > Why then we are talking about problems with object literals? Because you proposing using object literals always rather than as an optional production optimisation.
> It seems a bad idea. Why not semicolon? Because semicolons are used to denote statements while commas are used for expressions.
As I said, then it'd be assumed that you can put any statement in there when you can't, like: ``` javascript var box = var foo = "bar"; ; ```