5 ms·
I never said mutating a variable is confusing. I said repurposing the equality operator is potentially confusing, especially for children. Pascal used ":=" to
by willtim 10y ago
I never said mutating a variable is confusing. I said repurposing the equality operator is potentially confusing, especially for children. Pascal used ":=" to mean assignment, long before Python existed.
- dragonwriter 10y agoBASIC used "=" for both assignment and equality tests long before Pascal existed and was more popular for teaching the youngest students even when Pascal was available, so I find the idea that the use of "=" for assignment is some kind of barrier that high school kids (or younger, even) are going to have a lot of problems with just as implausible as the idea that imperative mutation is such a problem.
- willtim 10y agoIt was before my time, but ALGOL used ":=" long before BASIC existed. The point is that academics have repeatedly not used "=" for assignment for successive new languages over many decades. Clearly they care, even if you do not.
- rwallace 10y agoWell yes, it's clear that repurposing '=' for assignment confuses or at least annoys many academics, no disputing that. But your earlier claim was that it confuses children, which it certainly does not. (Source: it didn't bother me in the slightest when I was learning Basic at age 11, or any of the other children I talked to about it.)
- willtim 10y agoYou have your personal annecdotes and I have my own. We will have to agree to disagree.