4 ms·
It is indeed assignment: https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/symbol-and-operator-reference/#symbols-used-in-imperative-expression
by gsuuon 3y ago
It is indeed assignment: https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/symbol-and-operator-reference/#symbols-used-in-imperative-expressions https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...
shadowing would be a second 'let a = 2'
- galkk 3y agoYeah, my bad but the code from grandparent is also incorrect, as for it to be compilable variable must be declared as mutable. That confused me, as I assumed that code there is compiling. But the only way for it compile is shadowing, so yeah, I kind of assumed that to shadow is to use this syntax. I'm not working with F# for some time, so should've checked before posting.