Skip to content

Allow "let" instead of "final" #3231

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
cliftonlabrum opened this issue Jul 21, 2023 · 1 comment
Closed

Allow "let" instead of "final" #3231

cliftonlabrum opened this issue Jul 21, 2023 · 1 comment
Labels
feature Proposed language feature that solves one or more problems

Comments

@cliftonlabrum
Copy link

Currently we used final to declare an immutable variable.

I think it would be great to use let for the same thing (similar to the Swift language). It would help reduce the number of keystrokes needed and help the code be slightly less verbose. 😊

Thanks for a great language!

@cliftonlabrum cliftonlabrum added the feature Proposed language feature that solves one or more problems label Jul 21, 2023
@lrhn
Copy link
Member

lrhn commented Jul 21, 2023

Not a bad idea. Also not a new one 😁
Duplicate of #136 (and #2868).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Proposed language feature that solves one or more problems
Projects
None yet
Development

No branches or pull requests

2 participants