init keyword to replace new keyword #4612
Unanswered
Thaina
asked this question in
Language Ideas
Replies: 0 comments
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.
-
I see
init
was made to be contextual keyword as of C# 9. I think maybe we should let it be full fledge keyword. And replace thenew
keyword for object constructionIt could be made to be transpile wrapper mechanism, underlyingly transform into
new
/ calling generated static factoryCreate
method / and fabriate anything so this could also solvingand some other proposed feature could be included without any disturbing the older repo
Beta Was this translation helpful? Give feedback.
All reactions