Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Perl 6 vs Perl 5

Name: Anonymous 2012-01-08 0:35

Can we have a serious Perl 6 vs Perl 5 thread?

I've been trying to wrap my head around what roles are trying to emulate. Just an odd sort of OO way of programming?'

What else where significant changes?

Name: Anonymous 2012-01-08 6:01

The whatever star should work like scala's underbar.
Perl6 adds three new ways of creating a closure (that i know of)

sub($lorem, %ipsum) { $lorem + %ipsum<dolor> } # same as p5
-> $lorem, %ipsum { $lorem + %ipsum<dolor> }
{ $^lorem + %^ipsum<dolor> }
* + *<dolor> # limited to operators


I'd rather have just one that looks like ruby blocks or lambdas in c# (i.e. that don't make me wanna scratch my eyes out).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List