-
Notifications
You must be signed in to change notification settings - Fork 789
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
Improve error reporting: usage of '<-' operator on non mutable bindings #1110
Closed
Tracked by
#1103
Comments
79 tasks
I suggest that we might want to go even further than this: -
(although we probably would have to drop the RHS) |
@smoothdeveloper Could you update the issue with a "what" "why" and "how" as per the other issues? Thanks :-) |
forki
added a commit
to forki/visualfsharp
that referenced
this issue
May 3, 2016
WIP PR: #1147 |
forki
added a commit
to forki/visualfsharp
that referenced
this issue
May 3, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
May 3, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
May 3, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
May 3, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
May 3, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
May 3, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What
Sometimes assignment operator is used on immutable values, currently, for all cases the compilers gives
This value is not mutable
:Why
In cases where it is straightforward to devise a fix (changing simple value to mutable), giving help to developers unfamiliar with F# on how to change their code smooths the learning curve.
How
The message could read
value 'x' is not mutable, please check that it is declared as mutable: 'let mutable x = 10' if you intend to mutate it.
If it is not easily possible from AST to quote the RHS expression, we can still show the LHS.
The text was updated successfully, but these errors were encountered: