If you are to use a scripting language, would you like this syntax for assigment and comaprison:
count := 0
count := count + 1
if count = 10 then
… or rather this one?
count = 0
count = count + 1
if count == 10 then
The first is based on Pascal, the second on Java/C syntax. I follow Mr. Wirth’s argumentation to some point that an assignment is different from the mathematical equality “=” operator, and therefore should use something else. He suggested “:=” IIRC.
What do you think?
Edit: personally I’d prefer “count <- count + 1” to show the direction of the data flow.