![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
As Larry Wall wrote in Apocalypse 1:
I hereby declare that a package declaration at the front of a file unambiguously indicates you are parsing Perl 5 code. If you want to write a Perl 6 module or class, it'll start with the keyword module or class.And in Synopsis 1 it is stated: # Migration is important. The perl interpreter will assume that it is being fed Perl 5 code unless the code starts with a "class" or "module" keyword, or you specifically tell it you're running Perl 6 code in some other way, such as by:So it looks that you can switch to Perl6 and still use most (if not all) of your Perl5 code and coding habits and slowly make the transformation module by module when you get more confident in your Perl 6 skills. And as for OO: If you want to treat everything as objects in Perl 6, Perl will help you do that. If you don't want to treat everything as objects, Perl will help you with that viewpoint as well. (Synopsis 1) CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law In reply to Re: Perl 6, Object Orientation and Melting Brains
by CountZero
|
|