Re: RE: if statement not working
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 21, 2002
- 432 views
22/03/2002 12:43:00 PM, bensler at mail.com wrote: > >I like the fact that = only works for numeric comparison. >I'd like to see == for object comparisons though, instead of equal() > >Chris Why? What problem is having two sets of comparitors solve? Are you suggesting for numbers we use: = > < != <= >= and for sequences we use: == >> << !== <== >== If want to know if one sequence has the same value as another, why is it better that I use "==" instead of "="? It even introduces another issue that the current Euphoria doesn't have. Currently I can write: atom x sequence s if equal(x,s) then ... but your suggestion I'd use: if x == s then ... but what happens if I later change my mind and 's' is now an integer. I have to go and update all my comparitor references to use '=' etc... Is this a better idea? I think not. --------- Derek.