Skip to content

Champion "readonly for locals and parameters" #8479

Answered by 333fred
gafter asked this question in Language Ideas
Discussion options

You must be logged in to vote

In the interest of making the language team's position on this clear, we've decided to close this issue, mark it Likely Never, lock it, and are moving the existing comments over to a discussion. It is our position at this time that readonly locals are not going to be added to the language; we do not feel that the noise from adding readonly as a local modifier, which will then need to be applied to most local variables, is worth it for the benefits that such a change would bring. We also do not believe that benefits here would be worth introducing a compiler switch or language dialect. readonly on parameters is still an open question, and we will track that specific proposal here. If we so…

Replies: 1185 comments 96 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Hermholtz
Comment options

@tats-u
Comment options

@CyrusNajmabadi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@vladd
Comment options

@HaloFour
Comment options

@CyrusNajmabadi
Comment options

@CyrusNajmabadi
Comment options

@Hermholtz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
38 replies
@tannergooding
Comment options

@njeisecke
Comment options

@Thaina
Comment options

@Thaina
Comment options

@CyrusNajmabadi
Comment options

Answer selected by 333fred
Comment options

You must be logged in to vote
40 replies
@vladd
Comment options

@HaloFour
Comment options

@alrz
Comment options

@KennethHoff
Comment options

@alrz
Comment options

Comment options

You must be logged in to vote
9 replies
@HaloFour
Comment options

@CyrusNajmabadi
Comment options

@CyrusNajmabadi
Comment options

@CyrusNajmabadi
Comment options

@CyrusNajmabadi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Converted from issue

This discussion was converted from issue #188 on October 03, 2024 20:29.