Slashdot Mirror


Exegesis 6 (Perl 6 Subroutines) Released

chromatic writes "Perl.com has just published Damian Conway's Exegesis 6 which gives practical examples demonstrating how to use the new subroutine and method semantics in Perl 6. This is the companion to Larry Wall's Apocalypse 6 which discussed the changes planned for subroutines in Perl 6."

10 of 234 comments (clear)

  1. There's a long way to go by Dancin_Santa · · Score: 3, Funny

    I mean, whitespace hasn't even been made meaningful yet.

    Where's $\space and $\tab ?

    1. Re:There's a long way to go by TedCheshireAcad · · Score: 3, Funny

      Oh lord, variable names/function calls with whitespace.

      That would truly make perl executable line noise.

  2. Re:For those who don't know.... by absolut_kurant · · Score: 4, Funny

    Thank God Damian isn't working on the Apocalypses...

    --
    Yes.
  3. Perl floats *all* boats by flicken · · Score: 5, Funny
    That's the point of Perl. If you don't want to use the verbosity of:

    sub Fahrenheit_to_Kelvin (Num $temp is rw) {

    You don't have to! You could just as well use:

    sub f2k ($temp) {

    Perl will allow either. It's your choice. You can do the quick one-off-hack-it-up-at-3am-after-two-large-pots-of- coffee, and you can have a large programming project that must be maintained for years to come.

    You have the choice. Pick whichever method fits the task at hand.

    --
    20 mil and I will! Learn Esperanto with 20M others.
    1. Re:Perl floats *all* boats by groomed · · Score: 2, Funny

      The problem is that it'll be the one-off-hack that'll have to be maintained for years to come, while the large programming project will just sit and collect dust in a closet.

  4. Re:Release on the long road to nowhere by keesh · · Score: 4, Funny
    This guy is not trolling
    Erm, yes I was...
  5. There's more than one way to do it? by MoxFulder · · Score: 5, Funny

    Perhaps the Perl motto should be changed from TMTOWTDI to TAMODVPCWDSSAAMSTWDI:

    "There's a multitude of different visually pleasing constructions with deceptively subtle syntax and auto-magical semantics that will do it."

    Okay, I love Perl 5... Perl 6 looks really cool but overwhelming. I'm glad they're adding the options for stricter type-checking and such, but remembering the syntactic shortcuts is gonna be even harder. I don't even want to know what the parser code looks like...

  6. Re:Keywords by Billy+the+Mountain · · Score: 2, Funny

    What's wrong whacking a cockroach with a baseball bat? Here in Houston, carrying a baseball bat as protection against cockroaches is common sense, plain and simple.

    BTM

    --
    That was the turning point of my life--I went from negative zero to positive zero.
  7. Re:Keywords by Anonymous Coward · · Score: 1, Funny

    Yes, that's great! I'd much rather spend large portions of my day worrying about manual type conversions, instead of actually writing the business logic for my application.

  8. Re:Keywords by ajs · · Score: 2, Funny

    Anyway, you are totally wrong, every object in C# is derived from 'object'. Same as VB.NET. Same as Managed C++

    I think you're talking about the object model of the .Net runtime, and that's fine, but .Net runtime is not a language, and its objects are not language primatives.

    To give an example of C++, and then discuss what is effectively an RPC-based library's object model is way, way beyond the scope of the original conversation.

    Like I said before, this is not a unique feature to one, or even a dozen toolkits, languages, etc in the last 10 years. You're not citing something that originated with the example that you are citing. I was responding to an assertion of yours that you seem not to really be talking about any more, so I'm going to drop this thread.