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.
Weighing Options (Score:2)
Considering this:
I think it gains me nothing. Nothing at all.
Considering this:
If I can get that (amongst other things), I will cheerfully give up:
Different people value different things. I'd hate to give up the items on that list, but I'd much prefer to work with a programming language which looks like it's been created in my lifetime.
Reply to This
Re: (Score:1)
That's why D::D should only be a prototyping tool and eventually such features should be available from the core.
Note, however, that making the new syntax available with a "feature" invocation carries virtually the same problems as D::D. You never know from static analysis (and non-recursive) whether it's on or not. But at least this would mean it's blessed and to be considered part of the language.
Re: (Score:2)
Well, the difference with use feature is that at least in that case it's official, in the core, works the same on every operating system and every host, and doesn't require the parser to leave the document.
So it's possible to add the relevant special casing in, where in the generic DD case that is not true.
Re: (Score:1)
Not really. Consider Modern::Perl, common::sense, and their ilk. And besides the ones on CPAN, any codebase can contain its own equivalent. Sure, you can special-case
strict.Re: (Score:1)
That example of MooseX::Declare like code is well intentioned but I (personally) think *horrific* for proving your point.
function morning (Str $name) {
say "Good Morning $name"
}
This won't piss off the people who think you're pushing OO at them.
Re: (Score:2)
Both can be made available, but don't forget that Perl doesn't really know the differences between functions and methods. That being said, I want a modern language and P5P is too conservative to provide that to me. Regrettably, they may be right.