Think "has-a" relationships
Every property is a "has-a" relationiship. A circle "has-an" area. An employee "has-a" salary.
It's the wholesale application of this design even where it makes no sense and costs a lot more than it buys that I disagree with.
Since I didn't endorse the wholesale application of that design, I have no idea why you're disagreeing with it to me.
An "Area" class? What in heaven's name for?
I never suggested that an Area class was, specifically, a good idea. I'm sure you've seen examples before that are not pulled from real world usage.
In other words, it really seems you are saying something like
Of course, I've said nothing of the kind. If you would concern yourself with what I say, rather than what it seems like I'm saying something like, we might both be significantly less annoyed.
if you want to retract most of your original node [...] I will agree with you.
It's not at all clear that you're familiar with the original node. I can't retract most of "what it seems like I'm saying something like." I could only retract something I said. I explained that the usual implementation of accessors is not OO design, and that's why they rankle. I demonstrated what an OO approach would be. You haven't disagreed with any of that.

Caution: Contents may have been coded under pressure.

In reply to Re^6: The Accessor Heresy by Roy Johnson
in thread The Accessor Heresy by Roy Johnson

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.