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

Re^4: Seeking inside-out object implementations

by Perl Mouse (Chaplain)
on Dec 07, 2005 at 23:37 UTC ( #515072=note: print w/ replies, xml ) Need Help??

in reply to Re^3: Seeking inside-out object implementations
in thread Seeking inside-out object implementations

What I'm saying is that any attempt to enforce encapsulation is ultimately futile when the other person has the source and can simply change your code to expose things that they want.
You are completely missing the point of inside-out objects. The point of inside-out object isn't to prevent accessing data. The point of inside-out objects is on the one hand to prevent accidental access of data (collisions), and on the other hand to give you compile time errors when making typos in the attribute names.

Inside-out objects is to OO programming what 'use strict', lexical variables, and name-spaces are to non-OO Perl programming. None of it prevents anyone from getting to anything one wants - but that doesn't mean 'use strict', lexical variables and name-spaces aren't very good ideas.

Perl --((8:>*

Comment on Re^4: Seeking inside-out object implementations

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-10-14 04:25 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (320 votes), past polls