Well..
if 2 in my_set then (* some code *)
still is far easier to understand without previous coding experience compared to
if(my_set[2]) /*some code*/
I'm not too sure about 'in' only working on sets, but that may verry well be something that has changed over the eons... =)
/ Peter Lundqvist (disjunkt)
Previous text:
2003-04-02 12:17: Subject: ... and thanks for all the fish
The `in' operator is rather useful actually, and guess what, Pike has it already! It's the index operator on multisets. (The Pascal `in' operator operated only on sets, not arrays, AFAICR.)
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)