Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: •Re: Why get() and set() accessor methods are evil

by Elian (Parson)
on Nov 26, 2003 at 19:12 UTC ( #310351=note: print w/replies, xml ) Need Help??


in reply to Re: Re: •Re: Why get() and set() accessor methods are evil
in thread Why get() and set() accessor methods are evil

Nah. a[insert method call punctuation here]set_b(foo) is just nasty. If it's supposed to be an assignment it should look like an assignment, and setting a property or attribute is an assignment no matter how it's mediated under the hood.

One of the few places (well, OK, the only place so far, but I won't rule out others existing) that I like lvalue methods or subs.

  • Comment on Re: Re: Re: •Re: Why get() and set() accessor methods are evil
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2022-08-18 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?