Hacker, author, trainer
Technorati Profile [technorati.com]
I admit that I've been a bit lukewarm on Perl 6. I've read the Apocalypses and the Exegeses but nothing had really made me think that Perl 6 was something I wanted to learn. I like Perl 5. I like it a lot. Perl 6 often seemed too different to be of interest to me.
But last night I saw Damian speak about it. And that somehow helped it all make much more sense than just reading articles had. I now feel excited about Perl 6. I want to be able to start playing with it today. And the best thing is that I can. There's now a cut-down Perl 6 compiler included with the latest versions of Parrot. I guess that's where I'll be spending my weekend then.
If you have any doubts about Perl 6, then please try to get to one of Damian's talks about it. I'm sure he'll change your mind.
p.s. I still don't like the "rationalisation" of the sigils tho'.
Good Stuff (Score:1)
And I love properties on my variables. I'm going to have to start looking at Attribute::Handlers...
I don't care about the sigils though. They've always confused me so much in perl5 that I've never, ever been tempted to use a hash slice. :(
-Dom
Perl 6 (Score:1)
Re:Perl 6 (Score:2)
--Nat
Re:Perl 6 (Score:1)
I like the sigils (Score:2)
I saw Damian speak here in Portland, OR, and that was what finally convinced me that the new sigils are the way to go. I'm teaching Perl to a friend of mine right now and he's terribly confused about the difference between these two:
$foo = {};
%foo = ();
Mind you, I was trying to steer him away from references while he was first learning, but he's pretty ambituous and is really digging in. He thinks he's getting the hang of it, but I suspect that his mind is really going to get blown when he sees a
Re:I like the sigils (Score:1)
Re:I like the sigils (Score:1)
What I like about perl5's way of doing it is that the sigil is not part of the variable name, it's an indicator of the type of the expression. $h{x} is a scalar expression. In perl6, the sigil is simply part of the variable name, which means it really adds nothing -- zilch! -- for either the human or the compiler, other than to say (e.g.) "this is a hash variable". I'm sorry, but the compiler and I can both tell that $h{x} is referring to a hash variable.
The whole sigil thin
Perl 6 is going to be amazing (Score:1)
Of course, some changes are annoying. I'm not fully convinced about