Ron Buckton
Ron Buckton
> Many of the arguments which advocates of export-before-decorators are using don't have to do with decorating exports ever being a thing in the future. I think we should consider...
> fwiw, I think decorators need to be included in toString even if they appear before `export`. @ljharb: I don't believe that is relevant to this discussion, as #109 is...
> If you could "decorate" any export, what would you expect to be able to do? I posted this in https://github.com/tc39/proposal-decorators/issues/69#issuecomment-410811251, but it is worth mentioning here: One option to...
For TypeScript, we've been working with the idea that `export` and `default` are modifiers of the _ClassDeclaration_. As with `static` in ES6/TypeScript and `public`, `private`, `protected` in TypeScript, all decorators...
@wycats Wouldn't you instead be decorating the declaration that is being exported? I'd rather look into ways of qualifying a decorator in a future proposal. Something similar to how you...
One possibility of allowing enums with payloads would be to leverage some of the design around `struct` in https://github.com/rbuckton/proposal-struct and allow only wasm-primitive and `struct`-compatible types in the payload definitions:...
I wrote up a sketch for possible ADT support a few months ago, though the current `struct` proposal doesn't quite align with that design anymore: https://gist.github.com/rbuckton/4a5108fab40ac90551bf82d9884711b5 I also just wrote...
> @rbuckton I was thinking we could leverage something similar to [Scala's Extractor pattern](https://docs.scala-lang.org/tour/extractor-objects.html) (i.e. give enum values an `unapply` method that returns a tuple containing the original inputs). That...
@rwaldron I also have been discussing this with @bterlson for a few months now, but I don't recall any mention of this. Is there anything you can share that I...
@rwaldron, I've taken a look and here are some of my thoughts: > - `enum` is a new _LexicalDeclaration_ binding form, similar to `let` or `const`. In general I agree...