Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: what would you like to see in perl5.12?

by moritz (Cardinal)
on Aug 21, 2007 at 11:24 UTC ( #634056=note: print w/ replies, xml ) Need Help??


in reply to what would you like to see in perl5.12?

I don't know what's the state of assertions in 5.10, if they are not implemented I'd like to see some kind of assertion mechanism in 5.12.

You should have the possibilty to disable assertions via a pragmatic use or a command line switch with virtually no performance impact.

Usefull assertions are imho plain assert $code_that_evals_to_true; and pre- and postconditions for subs and methods.

In the case of methods it would be usefull if the pre- and postconditions were inherited to all child classes (see PRE/POST in S06 for the corresponding p6 spec).


Comment on Re: what would you like to see in perl5.12?
Download Code
Replies are listed 'Best First'.
Re^2: what would you like to see in perl5.12?
by ysth (Canon) on Aug 21, 2007 at 15:26 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-07-30 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls