Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Thoughts on Perl6 - Love it? Hate it?

by Anonymous Monk
on Jan 11, 2002 at 01:47 UTC ( [id://137842]=note: print w/replies, xml ) Need Help??


in reply to Thoughts on Perl6 - Love it? Hate it?

I was concerned about Perl6 but then I re-read the Apocalypes and Exeges.

Now I am trying to hold back my enthusiasm because I know it will be at least a year till there is something to use.

The things I like:
- Levels of competance/features. Like "use strict", but now for type checking and other stuff.
- Object everything (not cuz I am a OO lover, but extending hashes will new features like "freeze the keys of a hash in place" are easier.)
- try/throw/catch is great for network programs, errors are rare but they need to be caught; foo() or die; sucks after the first 300 repititions.
- named and/or positional parameter declarations is going to be GREAT!. With some optional typeing, half my debugging code will disappear. And compile time errors, not just run time errors.

Things I am not so hot about:
- No explicit iterators, like my $iter := @a.iterator; $iter.getnext. What if I want to walk an array efficiently (ie no for(;;) loop) but be able to stop if one of the values requires immediate attention, then come back to the list. OR doing parallel operations on 3 or 4 or 200 arrays simulaneously.
However, iterators may be able to be constructed with continuations. The Parrot guys have stated the goal that they want to have continuation support in the VM.
- No mention of a standard Pre-Processor. I would like to have assert() and other simple macro expansions without haveing to take a runtime hit on production code.

Replies are listed 'Best First'.
Re: Re: Thoughts on Perl6 - Love it? Hate it?
by Masem (Monsignor) on Jan 11, 2002 at 02:57 UTC
    On iterators, I have released Tie::Array::Iterable, which allows arrays created into such objects to be iterable with iterator objects. I expect that with Perl 6, the mechanism for making iterators may be easier than having to cooerce the array as I did here.

    -----------------------------------------------------
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
    "I can see my house from here!"
    It's not what you know, but knowing how to find it if you don't know that's important

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-19 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found