RE: RE: if statement not working
- Posted by bensler at mail.com Mar 21, 2002
- 402 views
I should have said "I only see two small benefits to the current syntax" I think that makes my position a bit clearer :) Chris Derek Parnell wrote: > 22/03/2002 2:19:34 PM, bensler at mail.com wrote: > > > > >Good point. > > > >I have never found the need to use compare, so I was thinking in a > >narrower spectrum when I mentioned ==. > > > >I see two benefits to the current syntax. > > > >1. comparing equal length sequences (does the entire structure of the > >sequence need to match, or just the length?) > > > > I am talking about language syntax, not implementation tactics. Is there > any reason that the > interpreter cannot compare lengths if it sees '=' instead of > 'compare()'? > > >2. to visually define the difference between a numeric compare, and an > >object compare. > > Have you actually needed to do this? Anyone? > > >See: "justifying compare" posted by David Cuny in 1998 > > I will. David is very good, but I'm not convinced yet. Keep trying > > --------- > Cheers, > Derek Parnell > ICQ# 7647806 > >