News for hackers. Stuff that matters.
Re:Why does a = a[0] = [0] create a self-referential list in... by saghm on Friday November 19, 2021 @01:39AM (#29274462)
`==` doesn't have side effects though, so you don't have to worry about the order of uses of a variable that appears twice; it will have the same value both Tony's l times. It seems like a bad idea to me to have operators with side effects use the same rules as ones that don't just because they happen to have similar syntactic representations, but I've never written a non-toy programming language, so I guess there could be something I'm missing.

There are no comments on this comment yet.