w00t! Rakudo Perl has classes!
Check it out! Rakudo Perl has classes with methods and attributes!
uniqua:~/parrot $ cat woot.pl
class Foo {
has $a;
method set {
$a = "w00t";
}
method get {
say $a;
}
}
my $x = Foo.new();
$x.set();
$x.get(); # prints w00t
uniqua:~/parrot $ ./perl6 woot.pl
w00t
They're not complete by any means, but it's a big step forward. Thanks, Jonathan! Details in his journal.

Leave a comment