I just noticed that Python will give you hints (but only after guessing
wrong):
~ > python
Python 2.7.12 (default, Nov 20 2017, 18:23:56)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> quit
Would a message such as "use CRTL-D to exit" be appropriate? Right now it
is very bare. Maybe this?
~ > clj
Clojure 1.9.0 (use ^D to exit)
user=>
~ >
Alan
On Sat, Dec 9, 2017 at 5:15 PM, Sean Corfield wrote:
> I find the fact that "exit" and "quit" work in leiningen repls to be weird
>
>
>
>
I am a huge fan of Plumatic Schema, and it regularly helps me to find
mistakes in my code early in the development process. However, I just
tracked down a very unexpected error when using a lazy infinite list such
as that produced by `(range)`
Suppose you define two simple functions like `clojur
I find the fact that "exit" and "quit" work in leiningen repls to be weird
I agree. I’ve always used ctl-d to exit a Leiningen REPL or a Boot REPL – or
pretty much any console program I’ve ever used. I’m only surprised when ctl-d
_doesn’t_ work in such a program!
And, after all, both Leiningen
This really just the standard behavior of clojure.main, not a feature of the
clj tool, so this would require a change in Clojure itself.
--
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
Not
I find the fact that "exit" and "quit" work in leiningen repls to be weird
- this doesn't follow the otherwise consistent rules of the language. What
about an exit function, something like
(defn exit
([] (exit 0))
([n] (System/exit n))
so that it's not an out of band special case input?
On S
Hi - Just downloaded the new Clojure 1.9.0 package. When I tried the repl
I noticed that it doesn't respond to either `exit` or `quit` as one might
expect from the lein repl:
~/cool/tools > clj
Clojure 1.9.0
user=> (+ 2 3)
5
user=> exit
CompilerException java.lang.RuntimeException: Unable to reso
also, if I use lein repl, is deps.edn taken into account? I love that feature
It shouldn’t be hard for someone to write a Leiningen plugin that uses
tools.deps to read the cascade of deps.edn files and provide support for
resolve/classpath aliases etc. I’ve already done this for Boot:
https://g
> is the new clj CLI going to be alternative to Lein?
No, it’s not intended to replace lein. clj is about building classpath and
launching programs, not building or deploying artifacts.
> For example can I run repl with middleware?
No.
> also, if I use lein repl, is deps.edn taken into account
is the new clj CLI going to be alternative to Lein? For example can I run
repl with middleware?
also, if I use lein repl, is deps.edn taken into account? I love that
feature
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, se
To give you a bit of an explanation - I'd like to use
clojure/clojurescript for scripting... I was reading the:
http://blog.brunobonacci.com/2017/08/10/lumo-vs-planck-vs-clojure-vs-pixie/
and got curious how does the 1.9.0 behave when talking about startup times.
(Oh BTW notice that lumo and pl
11 matches
Mail list logo