expose keyword on struct field to auto generated ref property with the same name #2514
Unanswered
Thaina
asked this question in
Language Ideas
Replies: 2 comments
-
I think it's a perfect opportunity for a code generator. :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@amis92 Except I don't want it to really be generated. I want it to just be transpiled at compile time. It not actually become a real text code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes we have a class that just we want to inherit all of the field block from another struct.
This is not any CLR change. It just be transpiled to
This make exposing large struct and reusing code by extension method and interface become easier
I don't have specific preference for the name of keyword. It could be anything aside from
expose
I just cannot think of better nameBeta Was this translation helpful? Give feedback.
All reactions