RE: No "clojure --version" switch

2019-05-07 Thread sean
Or just type:   clojureor:  clj And it announces the version and starts a REPL – which is documented usage. I think one of the “issues” here is that clojure / clj are scripts that have an inherent version behind them (clojure -Sdescribe) but the version of Clojure that they run with is context-dependent. deps.edn can specify any Clojure back to … Clojure 1.1 it seems: seanc@DESKTOP-QU2UJ1N:~$ clojure -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.1.0"}}}'Clojure 1.1.0user=> *clojure-version*{:major 1, :minor 1, :incremental 0, :qualifier ""}user=> Given that, I think that a –version option on clojure would be misleading since it is not reporting the version of the clojure / clj scripts. Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEANAn Architect's View -- http://corfield.org/"If you're not annoying somebody, you're not really alive."-- Margaret Atwood From: Alan ThompsonSent: Tuesday, May 7, 2019 4:50 PMTo: clojureSubject: No "clojure --version" switch Seems we should have the "--version" switch that is pretty universal.  Right now, the best one can do is  > clojure --eval "(clojure-version)""1.10.0" which is hard for a new user to figure out.  Jira ticket? Alan-- You received this message because you are subscribed to the GoogleGroups "Clojure" group.To post to this group, send email to clojure@googlegroups.comNote that posts from new members are moderated - please be patient with your first post.To unsubscribe from this group, send email toclojure+unsubscr...@googlegroups.comFor more options, visit this group athttp://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.To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAN67zA0yrhNhfx2vwH%3D-oy1kbJPA0EyGwwvg%2BFX3kyV4tgz3Qg%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/5cd24a6f.1c69fb81.bb91f.699f%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: No "clojure --version" switch

2019-05-08 Thread Jesús Gómez
Just as an example of how other language manage that difference between
REPL and the Interpreter: Ruby...

 $ irb -v
 irb 0.9.6(09/06/30)

 $ ruby -v
 ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]



El mié., 8 may. 2019 a las 0:48,  escribió:

> Or just type:
>
>
>
>   clojure
>
> or:
>
>   clj
>
>
>
> And it announces the version and starts a REPL – which is documented usage.
>
>
>
> I think one of the “issues” here is that clojure / clj are scripts that
> have an inherent version behind them (clojure -Sdescribe) but the version
> of Clojure that they run with is context-dependent. deps.edn can specify
> any Clojure back to … Clojure 1.1 it seems:
>
>
>
> seanc@DESKTOP-QU2UJ1N:~$ clojure -Sdeps '{:deps {org.clojure/clojure
> {:mvn/version "1.1.0"}}}'
>
> Clojure 1.1.0
>
> user=> *clojure-version*
>
> {:major 1, :minor 1, :incremental 0, :qualifier ""}
>
> user=>
>
>
>
> Given that, I think that a –version option on clojure would be misleading
> since it is not reporting the version of the clojure / clj scripts.
>
>
>
> Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
>
>
> *From: *Alan Thompson 
> *Sent: *Tuesday, May 7, 2019 4:50 PM
> *To: *clojure 
> *Subject: *No "clojure --version" switch
>
>
>
> Seems we should have the "--version" switch that is pretty universal.
> Right now, the best one can do is
>
>
>
> > clojure --eval "(clojure-version)"
>
> "1.10.0"
>
>
>
> which is hard for a new user to figure out.  Jira ticket?
>
>
>
> Alan
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/CAN67zA0yrhNhfx2vwH%3D-oy1kbJPA0EyGwwvg%2BFX3kyV4tgz3Qg%40mail.gmail.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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/5cd24a6f.1c69fb81.bb91f.699f%40mx.google.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CAO9z-96Syo7PZrZUbV07iRHd3qUf4_SWc70%2BS2-E4%3DSmzSMYgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: No "clojure --version" switch

2019-05-08 Thread Alex Miller
Actually, reporting the Clojure AND Java version would be even better.

> On May 8, 2019, at 6:31 AM, Alex Miller  wrote:
> 
> I would echo the other comments here. What user question are we trying to 
> answer? The scripts are not written in Clojure, but use a Clojure program to 
> compute the classpath, then launch your Clojure program. The version used for 
> the first is largely irrelevant to you and probably more confusing than 
> useful.
> 
> Having a helper for the version used in the second is possibly useful and 
> would be happy to consider that. This could be done either in clojure.main 
> (CLJ) or in the Clojure scripts (TDEPS). I guess I would probably lean 
> towards the former.
> 
> -- 
> 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 a topic in the Google 
> Groups "Clojure" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/clojure/cvVPFpTkTaQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> clojure+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/clojure/d679ae95-13f3-41a7-a3ba-f90a5839ba8d%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/EC7DC405-6718-4AED-87E9-6A31336E182B%40puredanger.com.
For more options, visit https://groups.google.com/d/optout.


Re: No "clojure --version" switch

2019-05-08 Thread Alan Thompson
Jira CLJ-2508 created.

On Wed, May 8, 2019 at 4:51 AM Alex Miller  wrote:
>
> Actually, reporting the Clojure AND Java version would be even better.
>
> > On May 8, 2019, at 6:31 AM, Alex Miller  wrote:
> >
> > I would echo the other comments here. What user question are we trying to 
> > answer? The scripts are not written in Clojure, but use a Clojure program 
> > to compute the classpath, then launch your Clojure program. The version 
> > used for the first is largely irrelevant to you and probably more confusing 
> > than useful.
> >
> > Having a helper for the version used in the second is possibly useful and 
> > would be happy to consider that. This could be done either in clojure.main 
> > (CLJ) or in the Clojure scripts (TDEPS). I guess I would probably lean 
> > towards the former.
> >
> > --
> > 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 a topic in the 
> > Google Groups "Clojure" group.
> > To unsubscribe from this topic, visit 
> > https://groups.google.com/d/topic/clojure/cvVPFpTkTaQ/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to 
> > clojure+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/clojure/d679ae95-13f3-41a7-a3ba-f90a5839ba8d%40googlegroups.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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/clojure/EC7DC405-6718-4AED-87E9-6A31336E182B%40puredanger.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CAN67zA3AnBTjrXhURmHssZbW%2BQwZc%3DWADcT1fKNBPxNOO_nYfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: No "clojure --version" switch

2019-05-08 Thread Alex Miller
Thanks!

On Wed, May 8, 2019 at 11:49 AM Alan Thompson  wrote:

> Jira CLJ-2508 created.
>
> On Wed, May 8, 2019 at 4:51 AM Alex Miller  wrote:
> >
> > Actually, reporting the Clojure AND Java version would be even better.
> >
> > > On May 8, 2019, at 6:31 AM, Alex Miller  wrote:
> > >
> > > I would echo the other comments here. What user question are we trying
> to answer? The scripts are not written in Clojure, but use a Clojure
> program to compute the classpath, then launch your Clojure program. The
> version used for the first is largely irrelevant to you and probably more
> confusing than useful.
> > >
> > > Having a helper for the version used in the second is possibly useful
> and would be happy to consider that. This could be done either in
> clojure.main (CLJ) or in the Clojure scripts (TDEPS). I guess I would
> probably lean towards the former.
> > >
> > > --
> > > 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 a topic in the
> Google Groups "Clojure" group.
> > > To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/cvVPFpTkTaQ/unsubscribe.
> > > To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
> > > To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/d679ae95-13f3-41a7-a3ba-f90a5839ba8d%40googlegroups.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.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/EC7DC405-6718-4AED-87E9-6A31336E182B%40puredanger.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 a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/cvVPFpTkTaQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/CAN67zA3AnBTjrXhURmHssZbW%2BQwZc%3DWADcT1fKNBPxNOO_nYfg%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CAOdgdgx%3DZ7ctD0jqTNznFQSCfUrnc%3Dp-y-2PHZfrLdv4LYGkCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.