Stuart Sierra <the.stuart.sie...@gmail.com> writes:

> The problem is, I think, that everyone will have a slightly different
> definition of "interactive environment."  If I run
>     java ... clojure.main path/to/file.clj
> does that count?  What about
>     java ... my.compiled.namespace
> ?  Or what about a REPL thread inside another application?  Or a
> Clojure function invoked from Java code?

> I think the solution is to define your own *environment* var and bind
> it where you see fit, wrapping clojure.main if necessary.

That's not really helpful for my purposes; I want by code to behave the
same way whether started from slime, an IDE, or the REPL; to do that I'd
have to either maintain my own list of heuristics for each possible
environment or get some sort of buy-in from the developers of each
environment. But now that I think about it, I don't suppose it's likely
to get enough consensus/buy-in for such a thing to actually be a
reliable heuristic, so I'll just code it against SLIME and let users of
the other environments patch it themselves. =)

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

Reply via email to