Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Re: Re: Re^2: Private method variations

by TimToady (Parson)
on Mar 02, 2004 at 00:46 UTC ( #333125=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re^2: Private method variations
in thread Private method variations

Gee, you can have scalars and arrays and hashes with (almost) the same name too. Somehow people manage to keep those straight...

Really, I think it's a much worse problem to put public and private methods into the same namespace, because then not only do you have to keep the names straight, but anyone who inherits from you has to keep them straight. Private names should not show up in the public interface at all. Even within the class, it's vitally important to be able to distinguish when you're calling yourself privately from when you're calling yourself through the public interface. C++ style rules just make things completely ambiguous, visually speaking. Drives me nuts.

  • Comment on Re: Re: Re: Re^2: Private method variations

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2018-10-17 13:29 GMT
Find Nodes?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...

    Results (94 votes). Check out past polls.