Re: = vs := and = vs ==
- Posted by jaygade May 07, 2014
- 2380 views
_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.

