Re: = vs := and = vs ==

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu