I'm finding some situations in my projects where I want to know if the code is running from an interactive environment or not.
It would be great if environment developers could agree on a convention to signal this. I suggest something like an *environment* variable that would be bound to a string describing the program running the current instance. These strings would probably look something like a web browser's User-Agent string, containing the name and version. I'm not totally sold on the word "environment" as it also has some shell-centric connotations, so I'm open to other suggestions too. If it is not bound, you may assume it's either an old build of Clojure or it's running straight from the command line or perhaps inside a non-clojure-aware application server (like jetty or tomcat). The clojure.main/repl function could bind this, and we could get SLIME, VimClojure, and other editor/IDE systems to bind it as well. What do you think? Would that be helpful? I'd be willing to write patches for clojure.main/repl as well as SLIME. -Phil --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---