Add init Methods #9039
Unanswered
jetyb
asked this question in
Language Ideas
Replies: 1 comment
-
#8546 |
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.
-
Hello. I suggest to add init Methods. They have modifier init and:
I more like keyword readonly , but this keyword is already used in some method declarations. So i suggest keyword init or some another. I dont think it would be very hard task.
With this new feature we can have more refactoring in constructors code and can call same code that can modify readonly variables.
Beta Was this translation helpful? Give feedback.
All reactions