Why Does “=” Mean Assignment?
hillelwayne.com
Why Does “=” Mean Assignment?
1–10 of 367 posts
Re: Why Does “=” Mean Assignment?
#2Coincidentally in async languages like Verilog there is a another assignment operator '<=' which means that the variable won't take the new value until the next clock cycle (or more explicitly the next evaluation of the process block). '=' exists also and has the same meaning as with traditional languages.
Re: Why Does “=” Mean Assignment?
#3Re: Why Does “=” Mean Assignment?
#4Re: Why Does “=” Mean Assignment?
#5Traditionally := was used for assignment, which makes sense since it is an asymmetric symbol for an asymmetric operation.
Re: Why Does “=” Mean Assignment?
#6Re: Why Does “=” Mean Assignment?
#7Because programming languages are typically designed for the tiny group of existing programmers than the much larger group of future programmers. The same reason unnecessary tokens exist, and 'drop' means delete in databases. It's entirely cultural.
Re: Why Does “=” Mean Assignment?
#8[edit]
:P LOL at downvotes, HN is no place for silly annecdotes "this is serious things we dooo".
Re: Why Does “=” Mean Assignment?
#9Re: Why Does “=” Mean Assignment?
#10Because K&R had terrible keyboards so they abbreviated everything as much as possible. Traditionally := was used for assignment, which makes sense since it is an asymmetric symbol for an asymmetric operation.