develooper Front page | perl.perl6.language | Postings from April 2001

Re: Parsing perl 5 with perl 6 (was Re: Larry's Apocalypse 1)

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
April 16, 2001 12:13
Subject:
Re: Parsing perl 5 with perl 6 (was Re: Larry's Apocalypse 1)
Message ID:
5.0.2.1.0.20010416151132.01ec6ab8@24.8.96.48
At 11:50 AM 4/16/2001 -0700, Nathan Wiger wrote:
>Dan Sugalski wrote:
> >
> > Besides the size and clunkiness issues, there's another problem. String
> > evals in a perl 5 section of code will expect to be parsed as perl 5, which
> > kinda precludes the whole "compile perl 5 to bytecode and pass it through
> > the p526 converter" solution. Makes mixing and matching perl5 and perl 6
> > code rather more difficult. :(
>
>So, there seems to be an impass: Backwards compatibility is good, but
>Perl 6 by design is going to be fundamentally incompatible.
>
>Why couldn't we only install Perl 6 as /usr/bin/perl6? (Someone else
>suggested this as well, I believe.) That way, "perl" would be 5, and
>"perl6" would be 6. If you want a Perl 6 script you *have* to say

Sure. I'm completely fine with that, and I'm also fine with /usr/bin/perl 
being a really clever source translator that takes perl 5 code and runs it 
through either a translator and then perl 6 (if it's OK there) or perl 5 if 
it's not.

I just don't want to commit to that--we're going to have enough fun getting 
perl 6 chewing through its native code. I'd rather not take on more fun 
than one human being can withstand...

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About