You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bill Hails edited this page Aug 13, 2024
·
3 revisions
Variables are immutable. They can be created by assigning a value, but assigning a value to a variable in the same scope
merely creates a shadowing variable and the previous variable is hidden:
let
x = 12; // ok
x = "hello"; // ok
in
print(x); // "hello"