On 14 March 2016 at 19:45, Christopher Small <metasoar...@gmail.com> wrote:
> I know that planck (http://planck-repl.org/) has successfully achieved > cljs scripting capacity on OSX (and I've heard there's progress on Linux > support as well, but am fuzzy on the details). Do you think support for > planck or something similar might be achievable through inlien? This would > make it an attractive candidate for snappy, short-lived scripting tasks as > well. > I would certainly hope so, but I am not familiar enough with cljs to answer this properly. It is on my list of things to investigate and look into. Anything that comes out of it will most likely not depend on Planck directly though, as I'd like to support as many common OSes as possible for now (Windows/Unix). On 14 March 2016 at 23:24, Yehonathan Sharvit <vie...@gmail.com> wrote: > Really awesonme. > Is there a way to use the repl while developing a script with inlein? > It's possible, yes. You can for example add (do (clojure.main/repl) (System/exit 0)) at the very end of your script. If you want a more sophisticated repl, you can use reply by adding it as a dependency (temporarily): '{:dependencies [[org.clojure/clojure "1.8.0"] ;; ... [reply "0.3.7"]]} ;; your code (do (reply.ReplyMain/main (into-array String ["--standalone"])) (System/exit 0)) If you wonder about the (do (repl) (System/exit 0)) idiom, it's used to stop the Clojure reader to attempt to read more data while you're editing the script. Otherwise it'll work similar to running a bash script while you're editing the script itself, which usually ends in pain and errors. I'm not sure whether I consider that a bug or not yet (being able to edit script while running), so thoughts on this is welcome. I can't imagine anything but issues by supporting it right now. (See also https://github.com/hyPiRion/inlein/blob/master/examples/repl.clj for a customised repl example, and https://github.com/hyPiRion/inlein/issues/8 for an issue to create a basic provided repl for users) -- Jean Niklas -- 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.