Why = = (and not just =)

John Roth newsgroups at jhrothjr.com
Mon Oct 20 06:29:59 EDT 2003


"Duncan Booth" <duncan at NOSPAMrcp.co.uk> wrote in message
news:Xns941A62CD3BC1Eduncanrcpcouk at 127.0.0.1...
> "John Roth" <newsgroups at jhrothjr.com> wrote in
> news:vp608amhe0jh1d at news.supernews.com:
>
> > Frankly, I'd rather have the assignment operator be something
> > like a left arrow: "<-" perhaps. I think it makes more sense,
> > and it avoids the confusion between one = and two.
>
> This would be just as ambiguous as making both assignment and comparison
> use '='. Compare:
>
>     a<-b<-c
>
>     a=b=c

1. I didn't suggest using the same symbol for both.

2. I'm quite well aware of the syntactic issue in Python. Unfortunately,
there
aren't any good solutions without adding extra symbols that aren't on the
keyboard.

John Roth
>
>
> -- 
> Duncan Booth                                             duncan at rcp.co.uk
> int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
> "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?






More information about the Python-list mailing list