3 ms·
Syntax highlighting can help with distinctions like that. You might prefer Nim's visually distinct "let" for immutable, "var" for mutable. "const" is also avai
by jlokier 4y ago
Syntax highlighting can help with distinctions like that.
You might prefer Nim's visually distinct "let" for immutable, "var" for mutable. "const" is also available and means resolved to constant at compile time, similar to Zig's "comptime".
- culi 4y agoit hurts that `let`, `var`, and `const` are all used in JS and mean completely different things. `let` even means the exact opposite