From: Nicholas Clark Date: Tue, 13 Jul 2004 11:28:49 +0000 (+0000) Subject: Generalised "how many in list context" would be useful X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0c13e809ed4d404a11e0397efa6d6cb6bbb30d3e;p=p5sagit%2Fp5-mst-13.2.git Generalised "how many in list context" would be useful p4raw-id: //depot/perl@23094 --- diff --git a/pod/perltodo.pod b/pod/perltodo.pod index 7090662..6698b8d 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -137,6 +137,14 @@ O.pm/B.pm backend framework depends on it. Make the peephole optimizer optional. +=head2 You WANT *how* many + +Currently contexts are void, scalar and list. sort has a special mechanism in +place to pass in the number of return values wanted. It would be useful to +have a general mechanism for this, backwards compatible and little speed hit. +This would allow proposals such as short circuiting sort to be implemented +as a module on CPAN. + =head2 lexical aliases Allow lexical aliases (maybe via the syntax C.