Skip to content

Readonly properties #879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from

Conversation

hikari-no-yume
Copy link
Contributor

@Kubo2
Copy link
Contributor

Kubo2 commented Oct 30, 2014

@TazeTSchnitzel Can I ask in which case readonly properties are useful? Wouldn't it be better to implement a thing like lazy constant initialization so that constants could be declared and once declared they would have to be initialized in constructor?

@staabm
Copy link
Contributor

staabm commented Oct 30, 2014

@Kubo2 did you read the linked rfc?

@Kubo2
Copy link
Contributor

Kubo2 commented Oct 30, 2014

@staabm Aha... sorry, I only read the changes

@hikari-no-yume
Copy link
Contributor Author

RFC was withdrawn.

@dynasource
Copy link

would be nice to have, similar to Typescript's readonly modifier https://www.typescriptlang.org/docs/handbook/classes.html

@awd-studio
Copy link

It's high time to bring it up.

@Kubo2
Copy link
Contributor

Kubo2 commented Oct 10, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants