Permalink
Browse files

emphasize that Whatever-currying is syntactic

  • Loading branch information...
1 parent c73b3cb commit e1ffe9b04b7ee00958f3705409461571fb0002c0 @moritz moritz committed Aug 1, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Whatever.pod
View
@@ -59,6 +59,12 @@ This allow all these constructs to work:
say @a[1..*]; # 2 3 4
say @a[1..*-2]; # 2 3
+The currying is purely syntactic.
+
+ my $x = *;
+ $x + 2; # not a closure, dies because
+ # it can't coerce $x to Numeric
+
=head1 Methods
=head2 ACCEPTS

0 comments on commit e1ffe9b

Please sign in to comment.