in reply to The fallacy of the *requirement* for read-only instance variables.

And the answer is, that if the caller can pass the object to that other code, it can equally well pass the value to that other code directly rather than via the object.
I don't think so. The plumbing might already be set up.
  • Comment on Re: The fallacy of the *requirement* for read-only instance variables.

Replies are listed 'Best First'.
Re^2: The fallacy of the *requirement* for read-only instance variables.
by BrowserUk (Patriarch) on Apr 22, 2011 at 13:06 UTC
    The plumbing might already be set up.

    Obviously you have to compromise with legacy interfaces, no matter how broken.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.