Yeah, it's not worth the effort.

IF you were going to attempt it, you'd want to define a protocol (or 
multimethods) for the common features that both libraries provide, then 
provide different implementations of those protocols using each library. 
But what's the point, especially if they both wrap the same underlying 
system? You've just written a lot of complicated code that doesn't provide 
much value.

-S


On Wednesday, February 13, 2013 2:30:40 PM UTC-5, Zack Maril wrote:
>
> To do that from scratch would probably be pretty hard and not worth the 
> effort. It would be an interesting learning experience, but for building 
> something significant, I would recommend selecting one of the libraries and 
> just sticking with that one at first. Hermes and Titanium are both wrappers 
> around Titan, so they should in theory play nice, but I cannot make 
> any guarantees about that. Effectively, you would be creating a third 
> library wrapping two wrappers. 
> -Zack
>
>
> On Wednesday, February 13, 2013 8:30:06 PM UTC+4, AtKaaZ wrote:
>>
>> Hi.
>>  Suppose you want to make an abstraction on top of two similar but 
>> different libraries (hermes and titanium), so that I could switch between 
>> using either of them(or both of them) at compiletime or runtime, how would 
>> you do something like that?
>>
>> Thanks.
>>
>> -- 
>> Please correct me if I'm wrong or incomplete,
>> even if you think I'll subconsciously hate it.
>>
>>  

-- 
-- 
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/groups/opt_out.


Reply via email to