http://www.perlmonks.org?node_id=473582


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.

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