Re^2: Perl 5.12.0 has been released!
by BrowserUk (Patriarch) on Apr 13, 2010 at 14:01 UTC
|
Not to be critical, but what is so "awesome" about a less flexible replacement for die('Unimplemented');?
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [Watch: Dir/Any] [d/l] |
|
print "Step 1";
...
print "Profit!\n";
:) | [reply] [Watch: Dir/Any] [d/l] |
|
# this is fine:
class A { ... }
# other code here
class A {
# actually implement A here
}
# this dies, because class B is re-declared
class B { fail('Unimplemented') }
# other code here
class A { # <-- ERROR
# whatever
}
Maybe someday the yada-yada-yada term will throw an error in Perl 5 that's somehow distinct from other errors (like a different exception class), but until that time I don't really see the use.
Perl 6 - links to (nearly) everything that is Perl 6.
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
The name of the operator is awesome! Unfortunately it looks like it can't be overloaded, which would have been really useful. Feature request!
| [reply] [Watch: Dir/Any] |
|
BEGIN{ *CORE::GLOBAL::die = sub{ CORE::die( $_[0] //'Unimplemeted' );
+} }
A bare die (same number of characters), will be converted to Unimplemented at ....
And it can also be used a sub-statement like open O, '<', 'fred' or die;
I guess it doesn't have the cache' of ...?
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
|
|
Not as visible or searchable either, but lexing editors could detect it and create a TODO task for it.
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] [d/l] |
|
|
|