I would like to have two different implemntation of something in my project 
and switch between them based on a Leiningen profile.

For example I have abstracted all storage-related functions to 
app.repository and I have namespace app.stoage.fs for development and 
app.storage.sql for production. Now, in my source files I would like to 
:require only app.repository and some other piece of project should 
automatically decide which implementation should be used. Any ideas how it 
can be done?

The sources should ideally not know that they are being "toggled".

And yes, I come from an OOP world ;-).

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to