Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Warning: Ramble ahead!

I do love my craft and I agree that Ruby has some things going for it that Perl 5 does not. However, Perl 5 is, for all intents and purposes, a much more practical language. The primary reason for that is the CPAN. In fact, it may be that the CPAN is the last main reason to stick with Perl 5. That's why we needed Perl 6. Perl 5 is old and it shows (though I must confess that I love the language and all of it's quirks :).

If we love our craft, we will grow and discover new things. If you appreciate the conciseness that can be found with rich expressivesness, you'll appreciate the direction that Perl 6 is going. Heck, even Java is beginning to realize that things need to be different. Java 1.5 has enough interesting things in the language (such as Generics and Autoboxing*) that it might start moving in some very interesting directions. Most notably, one direction appears to be less code, which is one of the biggest complaints against the language.

In short, all languages evolve. Perl is evolving, but the direction is exciting. The new features make the language simpler without the overhead that C++ (to use your example) forces upon us. For example, to iterate over lists in parallel:

for @ids, @customers -> $id, $customer { ... }

That's the sort of thing that people need to do all the time, but write buggy code to accomplish. If your complaint is that Perl 6 will be a huge language, you're right. I'm not sure how that's a complaint, though. It's still easy to learn the basics and adding little bits and pieces of the language as you go is not a Bad Thing. However, these new constructs make programs shorter and clearer. Not like C++ at all :) To really get a feel for it, though, check out Perl 6 Essentials. It's a very easy read and while it's admittedly already out of date, they will be updating it every year until Perl 6 comes out.

Cheers,
Ovid

New address of my CGI Course.

* Autoboxing is nice, but I find it pretty annoying that it's a way to deal with a broken "feature" of Java rather than just fix the darned feature. Why won't Sun listen to their users? Or are their users so used to mixing primitives and objects that they don't realize there's a better way?


In reply to Re: Perl to Ruby translator? by Ovid
in thread Perl to Ruby translator? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found