Linked by Shlomi Fish on Sat 16th Oct 2004 07:28 UTC
General Development The purpose of this essay is to explain why I believe Perl 6, the way it currently seems to progress, is the wrong thing at the wrong time, and why I predict (with all the expected caveats of predicting something) that it won't be successful. I will also suggest a better alternative for the future of Perl which makes more sense at this point.
Permalink for comment
To read all comments associated with this story, please click here.
Semantics
by Archie on Sat 16th Oct 2004 11:58 UTC

What I always have loved about Perl(5) is that it allows me to translate algorithms into code transparently. For example, iterating a loop is as easy as thinking "let's see, for each value in the list - (do something)". Translated into code:

foreach $value (@list) { ... }

Now, I think that the following construct

for @xxx; @yyy; @zzz -> $x; $y; $z { ... }

hardly can be translated from natural language. What is that? "For each of the following lists xxx, yyy and zzz put into the values of x,y and z ..." - that's doesn't sound like a natural way of thinking to me! Something like

for $x, $y, $z (@xxx, @yyy, @zzz) { ... }

had been much better - it conforms better with the established semantics of

for <scalar> <list>

I don't like the direction Perl is heading into, that's all I can say..