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.
RE:Readability matters
by Dave Weaver on Mon 18th Oct 2004 08:36 UTC

    Perl is one of those languages you can write, but you can't read.

Really? Perhaps you are reading code by people who can't
write Perl properly.

void hello ( int count ) {
    int i;

    for ( i = 1; i <= count; ++i ) {
        printf( "[%d] Hello, world!n", $i );

sub hello {
    my $count = shift;

    for my $i ( 1 .. $count ) {
        print "[$i] Hello, world!n";

Alternative Perl:
sub hello {
    print "[$_] Hello, world!n" for 1 .. shift;

Trivial code, I admit, but also equally readable. In fact I think Perl has the edge in this simple example.

As someone who writes Perl and maintains Perl programs written by other people, I find readability an important, even critical, feature of a program, and I make sure that all my programs are neatly laid out and easily understandable.

Sure, it's easy to write code in Perl that's difficult to understand (search for JAPHs and see what I mean!), but it's also easy to write clear, concise programs.

Just MHO.