Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
although i've just started learing lisp (or any other function language), i've got a feeling it should be fairly easy to express this: (but can't give an example right away)
I don't know of a language that does this but I find the latter code (the one we use on PHP, for example) more convenient. Maybe because I got used to it.
yeah, the z in set x, y would be the way to go. There are no languages that I know of that have such a construct as an operator though.. I'd imagine ML has it. The problem I'm seeing is there's no operator combination I can really think of that would make sense in this situation.
nigma's first example would calculate if x or y would evaluate to true then check if z matched the result, obviously not the intention. I have to say though, it is quite rare that I have to do such a comparison in any of the languages and developments I have done personally.
Maybe that wasn't the best example. A more practical one might be if you wanted to check whether the value of a variable falls between two other values. For example, instead of having to say "if x is less than this AND x is greater than that" you could say "if x is less than this and greater than that".
Maybe in implementation in might look something like:
I think you would end up with a lot of operators... eg: "l < $var < r", "l <= $var < r", ... These are still relatively simple to understand but if you look at the way perl6 is going with all it's operators i have my doubts if they really make things easier...