Skip to content
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

Readonly properties #879

Closed
wants to merge 8 commits into from

Conversation

4 participants
@hikari-no-yume
Copy link
Contributor

commented Oct 23, 2014

@Kubo2

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

commented Oct 30, 2014

@Kubo2 did you read the linked rfc?

@Kubo2

This comment has been minimized.

Copy link
Contributor

commented Oct 30, 2014

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

@hikari-no-yume

This comment has been minimized.

Copy link
Contributor Author

commented Nov 3, 2014

RFC was withdrawn.

@dynasource

This comment has been minimized.

Copy link

commented Dec 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.