nim-basics icon indicating copy to clipboard operation
nim-basics copied to clipboard

wording correction

Open EbubeTheSage opened this issue 7 months ago • 1 comments
trafficstars

Sub-chapter on Variable declaration contains:

"In Nim we also distinguish values that can change, or mutate, from those that can’t"

The sub-chapter is focused on using var to signify a variable's mutability, not a value's (an object).

Teaching new coders to equate variables (references) to objects will cause a lot of issues downstream.

Fixing it would require a simple change of the word 'values' to 'variables', as a hyperlink to an easy-to-understand article on variables vs. objects.

Furthermore, later on, on object mutability, we can introduce distinctions between mutable & immutable types.

EbubeTheSage avatar Apr 15 '25 09:04 EbubeTheSage