We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following the ideas of this video https://youtu.be/f74PSgwLdDk?si=M5llP57gTIwiw3dA&t=969
We wish to have
method Test() { const x := 2; x := x + 1; // Error ! }
that could prevent accidental rewrite of a variable, like in JavaScript, or Rust (let without mut)
Similarly, in functions, we could benefit from this syntax and deprecate the "var" there, since variables are not overridable by default.
function Test(): int { const x := 2 x }
The semi-colon could be optional for functions.
The text was updated successfully, but these errors were encountered:
Related to #5914
Sorry, something went wrong.
No branches or pull requests
Following the ideas of this video
https://youtu.be/f74PSgwLdDk?si=M5llP57gTIwiw3dA&t=969
We wish to have
that could prevent accidental rewrite of a variable, like in JavaScript, or Rust (let without mut)
Similarly, in functions, we could benefit from this syntax and deprecate the "var" there, since variables are not overridable by default.
The semi-colon could be optional for functions.
The text was updated successfully, but these errors were encountered: