stencil icon indicating copy to clipboard operation
stencil copied to clipboard

Are Stencil decorators compile-time only? Or is there a runtime option?

Open trusktr opened this issue 1 year ago • 0 comments

Prerequisites

Describe the Feature Request

This isn't a feature request per se, however signing up for the forums requires handing over read/write permissions to my private repositories in order to log in which I can't accept.

I'm writing here because I'm curious if the new stage 3 standard decorator format has any impact on how decorators are implemented in Stencil.

My hunch is that if the decorators are compile-time annotations only, then runtime doesn't matter.

If Stencil does have a runtime decorator implementation, I would like to get feedback on whether the following problem and the solution idea make things eadier for decorator authors and/or decorator users:

discrepancy: we're allowed to get/set private fields, but not public fields, and public auto accessors are not fields.

Maybe this has no impact on Stencil at all if it will not have decorators at runtime.

Describe the Use Case

Define a Stencil component without using the compiler, while still using decorators (requires runtime implementation).

Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

trusktr avatar Oct 17 '24 20:10 trusktr