You might be right. Would foo?[bar] be parsable? It doesn't have the problem foo![bar] has regarding which interpretation is logical, IMO.
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Previous text:
2002-11-12 20:25: Subject: Re: More about ADTs
Thought about that, but "!" is a little problematic since it stands for a negation. Would foo![bar] return 0 or 1 if the element exists? The similarity with !foo[bar] suggests it'd return 0, but one could also disregard that and think it'd be 1. Either way we choose, it might be difficult to remember.
On a side note, the foo+[bar]=gnu and foo-[bar] syntaxes begin to feel more and more intuitive to me. I don't know about you, but I think they would be fairly easy to get used to.
/ Martin Stjernholm, Roxen IS