> This RFC proposes that the right operand of a C<..> operator
> may be omitted in a list context, producing a lazily evaluated
> semi-finite list. It is further proposed that operations on
> such lists also be carried out lazily.
>
OK, I've already requested that we allow omitting the left operand
_rather_than_ the right, and Damian's promised to pass that one on to Larry
to veto...

Now I'd like to propose that we also allow omitting _both_operands_! That's
not so wierd, it just means:
  @u = [..];    # @a contains the univeral set
works just fine, so I can then say:
  @i = grep {$_=abs($_)} @u;    # @i contains the integers
  # See higher-order function and multi-way comparison RFCs
  $s = sum (grep 0<__<=100 @i);
  print "The sum of the 1st 100 integers is: $s";

I think new programmers would expect this to 'just work', if they can use
the right operand only.


Reply via email to