-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Feature Request: make "let" completely synonymous with "var" #12432
Comments
OK, so you're saying you don't want a pattern-matching assignment statement, or a way of introducing readonly variables? You just want more keywords that do nothing new? |
I'm not following your rhetoricals. I don't want more keywords as "let" already exists. And as far as I can tell, it serves the same function as "var" except just in LINQ statements. |
An expanded use of
Except that it's readonly, which does better align to one of the proposed forms of let x = 123;
x = 456; // compiler error |
Okay, that's starting to make sense. I guess I should defer to you guys since you're computer language experts and since I just now poked my head in here with a random request. |
today:
perhaps we could allow something like this in the future:
@micampbell does this capture what you are thinking or am I missing something? |
That has been proposed as well. Having
Several languages have both I seriously doubt that anyone is flocking from C# to Python over whether or not the syntax matches mathematical notation, particularly something as insignificant as |
I am satisfied, and I concede. Thanks for the discussion and your time. |
No description provided.
The text was updated successfully, but these errors were encountered: