Sebastian

Results 104 comments of Sebastian

@spleen387 Hoisting is still a problem.

Generator function declarations are definently hoisted. Hoisting the function declaration and not the decorator is unintuitive and confusing. You can just wrap the function in a method call and it...

> I get that, but the same could be said about classes as well. Classes don't hoist so they don't suffer from the same problem that disallow function declaration decorators....

> In that case, perhaps decorators aren't a great idea after all? How are you getting that decorators aren’t a good idea just because you can’t put them on function...

@ivan-kleshnin Do you mean behind a directive?

Compositional functions are different as the grammar only allows ImportedBinding: CompositionFunctionDeclaration : ImportedBinding [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { FunctionBody } This means that you can only...

Previous discussions: #4 and #30.

I don't think the grammar specifically allows it but it should be allowed.

The grammar (If I'm reading it correctly) allows you to do: ``` javascript export default @decorator class Foo {} ```

@keithamus No it does. I just haven't pushed the latest version to that site.