NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
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