Hi Luca,

On Thursday, April 3, 2014 11:57:27 AM UTC+2, icamts wrote:
>
> Hi Christian,
> I think you are looking for this.
>
> http://en.wikipedia.org/wiki/Facade_pattern
>
> In clojure you can use a def for each private member of the facade. 
> Alternatively you can write a function to instantiate and return private 
> members. Use a defn for each facade's methods.
>
>
I'm not sure in how the facade pattern would help me on the conceptual 
level.

I'm pretty confident that I can work out the technical details of how to 
get my fingers at the existing objects or how to interface from the OO 
world into Clojure code.

The question is more like, how should I model the integration?

It seems pretty useless and/or dangerous to me to put the mutable objects 
into Clojure's immutable data structures and work on the them directly. 
Would I kind of extract the objects' data (value-like) into my data 
structures, perform operations an these and in the end retransform those 
values onto the objects?

That's more like the patterns I am searching for.

Thanks,

Christian

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to