4 ms·
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
by tormeh 12y ago
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 http://www.artima.com/weblogs/viewpost.jsp?thread=179766
- cygx 12y agoAn asterisk is only a Whatever if it's in term position: (* * *)(2, 3) will happily print 6.
- SwellJoe 12y agoI didn't find the whatever star funny until this point.
- pwr22 12y agoWhatever ;)
- Ultimatt 12y agoI'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
- esaym 12y agoPerl has always had something called "context" :)