Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: A new take on affordance.

by broquaint (Abbot)
on May 16, 2002 at 13:25 UTC ( #167005=note: print w/ replies, xml ) Need Help??


in reply to A new take on affordance.

A long property name is certainly going to discourage people from using them directly (we are perl programmers after all ;-), but there are other options.

For example if you're just creating read-only accessors then you could use the closure method for creating RO accessors as described in Tom Christiansen's perltoot.

There's also Michael Schwern's Class::Accessor which will perform all the accessor creating magic for you.

As people have previously discussed, OO in perl is like asking people not to come into your house as opposed to standing at the front door with a shotgun and a twitch in your right eye. So you may want to fall on the B&D side of property accessors or take the perl approach and ask people kindly not to mess with the object properties as it could do any() or all() of x,y, and z.
HTH

_________
broquaint


Comment on Re: A new take on affordance.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-08-21 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (126 votes), past polls