On 29 Oct 2002 at 11:22, Jonathan Scott Duff wrote: > On Tue, Oct 29, 2002 at 10:13:39AM +0200, Markus Laire wrote: > > Also the idea of allways using 'function' style for something so > > basic like superpositions doesn't appeal to me. > > Superpositions are "basic" in a fabric-of-the-universe kind of way, > but they are hardly basic in the everyone-learns-them-in-grade-school > kind of way. I think the latter is more important for huffman coding > of operators for the unwashed masses. But I'm willing change my mind > if we start teaching everyone superpositions in grade school :-)
You are making the fundamental mistake of thinking superpositions as superpositions. When thinking them as another-kind-of or/and, their usefulness comes a lot clearer. perl5: if $x == 5 || $x == 7 || $x == 99 perl6: if $x == 5 | 7 | 99 perl5: ...loop to test every value in an array... perl6: if ! 28 <= any(@days_in_months) <= 31 { ERROR } (this probably has slight syntax error) perl5: if $x > 0 && $x < 20 && $y > 0 && $y < 20 && $z > 0 && $z < 20 perl6: if 0 < $x & $y & $z < 20 perl5: if ($x >= 10 && $x <= 20) || ($x >= 30 && $x <= 40) perl6: if $x ~~ 10..20 | 30..40 -- Markus Laire 'malaire' <[EMAIL PROTECTED]>