Hello Philos,

> For example , I wrote debux ( https://github.com/philoskim/debux )  
> library. I want to use it only in development, not in production. If I 
> 'require' debux in source code to use it in development, I have to 
> remove it in the source code manually in production.

Do you intend to use this library from REPL or from the code itself?
If former, you can add the library to Leiningen (or whatever) REPL environment.
If latter, how do you enable/disable the debugging code in production? You can
use the same way for requiring/not requiring library.

> I tested your recommendation in REPL and it worked. However could you 
> tell me about how I can implement it in source code form, not in REPL?

There is no difference.

Regards,
Mikhail.

On Sun, 25 Feb 2018, at 13:01, Philos Kim wrote:
> Thanks both of you!
> 
> I know it is not desirable but it is sometimes needed, especially in my case.
> 
> For example , I wrote debux ( https://github.com/philoskim/debux )  
> library. I want to use it only in development, not in production. If I 
> 'require' debux in source code to use it in development, I have to 
> remove it in the source code manually in production.
> 
> I tested your recommendation in REPL and it worked. However could you 
> tell me about how I can implement it in source code form, not in REPL?
> 
> -- 
> 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.

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