Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: How will you use state declared variables in Perl6?

by Limbic~Region (Chancellor)
on Jul 08, 2005 at 22:03 UTC ( [id://473582]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How will you use state declared variables in Perl6?
in thread How will you use state declared variables in Perl6?

jgallagher,
BrowserUk's response boils down to "don't use state variables as a replacement for class variables when doing OO". I agree with that. The argument that it will be easy to make this mistake is false though as p6 OO looks visually a lot different from p5 (method foo() vs sub foo() for instance). I am not saying caution isn't warranted, but this is just once case that doesn't negate the usefulness elsewhere.

Cheers - L~R

Update: I reworded my response to be clearer but I believe the spirit of the message was left in tact.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-19 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found