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: 1190 comments 143 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
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
57 replies
@foxesknow
Comment options

@HaloFour
Comment options

@AartBluestoke
Comment options

@Hermholtz
Comment options

@jnm2
Comment options

jnm2 Feb 9, 2025
Collaborator

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

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Comment options

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

@CyrusNajmabadi
Comment options

Comment options

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

@crfrolik
Comment options

@CyrusNajmabadi
Comment options

@FrankBakkerNl
Comment options

@Thaina
Comment options

Comment options

You must be logged in to vote
17 replies
@jukkahyv
Comment options

@CyrusNajmabadi
Comment options

@jukkahyv
Comment options

@cprice404
Comment options

@TahirAhmadov
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.