Re: = vs := and = vs ==

new topic     » goto parent     » topic index » view thread      » older message » newer message
_tom said...

What would it take to allow := in an assignment statement? (Phix by Lomax already does this.)

What would it take to allow = to compare atoms and == to compare objects?

These syntax changes could make it easier for a Euphoria initiate.

_tom

I think that it would unnecessarily complicate things. You might as well introduce a keyword "let". I never had a problem differentiating between equality test and assignment.

As for comparing the equality of objects with "=" instead of "equal()", it's been discussed before but I would have to dig back through the archives to remember all of the old arguments pro/con.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu