Hillel Wayne personal blog

Why Does “=” Mean Assignment?

Take the following code: a = 1 a = a + 1 print(a) A common FP critique of imperative programming goes like this: “How can a = a + 1? That’s like saying 1 = 2. Mutable assignment makes no sense.” This is a notation mismatch: “equals” should mean “equality”, when it really means “assign”. I agree with this criticism and…
Points
674
HN comments
354
Submissions
1
Cited by
0 commenters

Programming LanguagesSoftware Engineering2018

On Hacker News

SubmittedTitle on HNPointsComments
Apr 10, 2018Why Does “=” Mean Assignment? by panic674354

More from Hillel Wayne

All 49 posts →

Related posts from the same era