in reply to numbers with chainable comparisons

Note that this idea was proposed for Perl 6 in RFC 25 and accepted in Apocalypse 3.

We're building the house of the future together.

Replies are listed 'Best First'.
Re^2: numbers with chainable comparisons
by Irrelevant (Sexton) on Jan 20, 2006 at 09:56 UTC

    Doh!... On one hand, that's a "yay", 'cos it means that I'm not the only person who likes that idea. On t'other, I don't get to be the guy who thought of it first. Meh. =/

    ...on a more serious note, the RFC suggests some kind of weird list-associative-ish behaviour for comparison ops. My method strikes me as more elegant, although I do like their idea of chained comparisons short-circuiting.