[REBOL] Re: Private/Public attributes
From: joel:neely:fedex at: 16-Nov-2002 18:28
Hi, Jan, and all,
First, Jan, thanks for the thought-provoking posts! Much to ponder
in your notes!
(OBTW, off-topic, is there some reason you chose -+ instead of ->
in your type analysis routines? Just curious...)
Now on with my actual reply ;-)
Jan Skibinski wrote:
...
> In essence, objects described by abstract data types
> display some abstract behaviour that is independent
> of the representation type.
>
> Users should not be allowed to break the abstraction via the
> abstract data type interface. Once an abstract object is made,
> its representation type can never be rediscovered.
>
This sounds like an interesting direction for more work, but I
must say I'm sympathetic toward Joel Spolsky's (no relation ;-)
Law of Leak Abstractions
http://www.joelonsoftware.com/articles/LeakyAbstractions.html
which seems to be true for most languages and systems of which I'm
aware (including REBOL, apropos the public/private discussion).
-jn-
--
; Joel Neely joeldotneelyatfedexdotcom
REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip
do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] {
| e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]