Re: = vs := and = vs ==
- Posted by jimcbrown (admin) May 07, 2014
- 2273 views
ChrisB said...
NO!
Never let it happen. I remember spending hours wondering why a section of code wasn't code wasn't working when a = b+c was buried within it, and groaning when I'd found it writing Delphi programs. One of the reasons I love Eu.
Chris
Not sure I agree here. It's easy to typo a = when == was meant, but typoing := in place of == would be a lot harder.
Even if we continue to refuse to allow assignment in the middle of evalutions, we could still have the new symbols, but then
if a := b+c then
would just throw a syntax error. That leaves open the possiblity of using new symbols for the sake of reader's clarity.

