Hi Christian,
I've been a bit too technical. What I mean is give your OO system a new 
interface made of functions. Choose functions according to your needs and 
develop a layer of functions that can create and access your objects 
instances. It's my opinion this is the stateful bridge in your first 
e-mail. Develop new features in clojure over this layer. This is a way to 
"use" your OO system. 
If you need to "extend" your objects the excellent clojure type selection 
flowchart by Chas Emerick will help to understand options clojure gives to 
you.

https://github.com/cemerick/clojure-type-selection-flowchart/


Il giorno venerdì 4 aprile 2014 11:24:18 UTC+2, Christian Eitner ha scritto:
>
> 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?
>

I don't think you'll be able to restore clojure processed values in all 
objects. Maybe you'll need to extend Java types in clojure (see before). 

>
> That's more like the patterns I am searching for.
>
> Thanks,
>
> Christian
>

I hope this helps,
Luca 

-- 
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