Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: NO PERL 6

by mt2k (Hermit)
on Dec 09, 2002 at 05:12 UTC ( #218450=note: print w/ replies, xml ) Need Help??


in reply to NO PERL 6

Argh!!!! Okay, I spent over half an hour writing a reply to this node, and then my computer shut down and restarted on me for no reason after I'd typed a heck of a lot (including a sample of code that showed what I hope Perl never looks like). Anyhow, I'll shortly sum up what I had before...

For starters, I make no claims at having read enough of the content regarding the subjct of Perl 6. I've glanced at a few of the new/modified features, such as the perl 6 regex scheme, which (from what I've seen) scares the heck out of me. So if you are an enthusiast about Perl 6 and think I'm dissing Perl 6, don't take me too seriously. I'm much too ignorant about the subject in order to provide a solid foundation on which to base my personal opinion as being more than that: a personal opinion on my current knowledge. I suspect this may also be batkins problem. I wonder if he is well-informed of the changes to the language, or if he's just afraid of what he has read/heard. As for me, I plan to read up more on it soon, so as not to be so ignorant. Besides, I'd much rather be prepared for the new stuff rather than being surprised when it is released!

I support a new version of perl (especially one that the perl community is rebuilding), but have a couple of concerns. First of all, backwards-compatability. Will Perl 6 be 100% entirely compatable with perl 5.6.1+ scripts? (I chose 5.6.1 because of popularity). Will I be able to run perl 5 scripts with perl 6? Or will I have to spend hours working on porting it over? Even more importantly, how will modules be affected? Will they all have to be rewritten in perl 6 code before they can even be used?

Second, I assume (yes, assuming is bad), that the majority (if not all), of the people rewriting perl are perl/system gurus. This makes me fear that the simplest of tasks will be difficult for a newcomer to the language to execute. To further explain, a new implementation in Perl 6 might seem like the easiest of tasks for one of these gurus, but will puzzle and frustrate newcomers to no end, perhaps making them give up one the language and turn to one of its competitors.

And just a very shortened example of what perl had better never look like. I'm not scared perl will turn out to be like this... I did this more for entertainment than for truth! I just made this up... no language is this ugly :) :

#--include module Perl8 export('declare', 'print', 'new', 'call', 'str', 'int'); #--include module CGI export(':standard'); sub main::main { declare lexical q as scalar; q = new Object ( Package => CGI, Method => 'new' ); print { SRC => STDOUT, BUFFER => int(0) }, call( Object => q, Method => header Params => str(text/html) ), str(Hi there, this is a sample CGI script); }


Comment on Re: NO PERL 6
Download Code
Re: Re: NO PERL 6
by chromatic (Archbishop) on Dec 09, 2002 at 06:36 UTC
    Will Perl 6 be 100% entirely compatable with perl 5.6.1+ scripts?

    No -- that's why it's called Perl 6. That's the answer if you're asking if Perl 5.6.1 is forwards compatible with Perl 6. If you're asking about backwards compatibility, read the next question.

    Will I be able to run perl 5 scripts with perl 6?

    That's the plan, yes.

    Even more importantly, how will modules be affected? Will they all have to be rewritten in perl 6 code before they can even be used?

    Since Perl 5 scripts and Perl 5 modules are written in the same language, it's the same answer.

    Second, I assume (yes, assuming is bad), that the majority (if not all), of the people rewriting perl are perl/system gurus. This makes me fear that the simplest of tasks will be difficult for a newcomer to the language to execute.

    Why? These are the same people who made Perl 5.

    Your code example reminds me of a .signature Simon Cozens had. It reads something like "Allowing programmers to program in English will only prove that programmers can't write English."

      I hadn't seen that .sig, but from http://www.people.iup.edu/don/quotes.shtm I found what I suspect is the original, The only advantage in making computers understand English is that it will prove once and for all that programmers can't write English. -- Mike Taylor

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://218450]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-09-16 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (157 votes), past polls