News for hackers. Stuff that matters.
Re:Data munging in Perl 6 vs. Perl 5 by munificent on Tuesday December 09, 2014 @06:21PM (#8726536)
> It's different from a typical lambda declaration, but intuitive in its own way.

Isn't it pretty similar to Scala's use of "_"? I think _.value creates a one-parameter lambda in Scala.

Re:Data munging in Perl 6 vs. Perl 5 by tormeh on Tuesday December 09, 2014 @08:31PM (#8727149)
Yeah, but it would be neat if it was a word instead, for example "that". "*" is hilarious, though. How do you multiply in Perl if the star is taken? I also like that it's named "whatever star", reminds me of Scala's Pimp my Library feature[0]

0: http://www.artima.com/weblogs/viewpost.jsp?thread=179766

Re:Data munging in Perl 6 vs. Perl 5 by cygx on Tuesday December 09, 2014 @09:11PM (#8727299)
An asterisk is only a Whatever if it's in term position:

    (* * *)(2, 3)
will happily print 6.
Re:Data munging in Perl 6 vs. Perl 5 by Ultimatt on Wednesday December 10, 2014 @05:25AM (#8728542)
I'd like to point out there are magical errors put in to keep Perl6 code relatively sane too:

  > .map: ** * * * **
  ===SORRY!=== Error while compiling <unknown file>
  Multiple HyperWhatevers and Whatevers may not be used together
Re:Data munging in Perl 6 vs. Perl 5 by SwellJoe on Tuesday December 09, 2014 @10:28PM (#8727531)
I didn't find the whatever star funny until this point.
Re:Data munging in Perl 6 vs. Perl 5 by pwr22 on Wednesday December 10, 2014 @12:37AM (#8727856)
Whatever ;)
Re:Data munging in Perl 6 vs. Perl 5 by esaym on Tuesday December 09, 2014 @11:50PM (#8727743)
Perl has always had something called "context" :)