Re: Meta-data should be added to deprecated functions?

2016-08-11 Thread Matt Mower
On Wednesday, 10 August 2016 13:22:47 UTC+1, Alex Miller wrote:

> In this case, there is not a specific function to point to, rather the use 
> of a transducer with a chan is the alternative.


How about {:deprecated } where the URL could refer to a 
human-readable/machine-processable description of the deprecation and 
alternative that could be presented by a tool/IDE.

m/

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


Execution Model

2016-08-11 Thread 'John White' via Clojure
Hello,

Does anyone know how to make Clojure behave more like ClojureScript when 
compiling?

That is, I don't want the top level forms evaluated - just analyzed and 
compiled, so I can write a script of top level forms that won't run when I 
compile the clj?

Thanks,
John

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


Re: Execution Model

2016-08-11 Thread Zach Oakes
Not sure there is any direct way to change that behavior but want to look 
into Boot scripts if you want to write small scripts without dealing with a 
main method. Here's a cool demonstration of writing a Boot script that 
starts a web server at the top level of the file:

https://medium.com/@bendyorke/0-to-clojure-in-less-than-10-lines-of-code-789b360f

On Thursday, August 11, 2016 at 8:46:32 AM UTC-4, John White wrote:
>
> Hello,
>
> Does anyone know how to make Clojure behave more like ClojureScript when 
> compiling?
>
> That is, I don't want the top level forms evaluated - just analyzed and 
> compiled, so I can write a script of top level forms that won't run when I 
> compile the clj?
>
> Thanks,
> John
>

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


Re: Meta-data should be added to deprecated functions?

2016-08-11 Thread Reid McKenzie
I'll do you one better... instead of having a convention for the value of 
the :deprecated key, use a map so you can have information such as the 
version in which it was deprecated, planned removal version, alternatives 
and soforth.

On Thursday, August 11, 2016 at 1:54:08 AM UTC-7, Matt Mower wrote:
>
> On Wednesday, 10 August 2016 13:22:47 UTC+1, Alex Miller wrote:
>
>> In this case, there is not a specific function to point to, rather the 
>> use of a transducer with a chan is the alternative.
>
>
> How about {:deprecated } where the URL could refer to a 
> human-readable/machine-processable description of the deprecation and 
> alternative that could be presented by a tool/IDE.
>
> m/
>

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


Re: Execution Model

2016-08-11 Thread 'John White' via Clojure
Thanks Zach, you've helped me realize I don't ever have to compile my .clj 
script, but can just load it instead. I gather the performance will be the 
same as for AOT compilation.

Cheers

On Thursday, August 11, 2016 at 3:25:21 PM UTC+1, Zach Oakes wrote:
>
> Not sure there is any direct way to change that behavior but want to look 
> into Boot scripts if you want to write small scripts without dealing with a 
> main method. Here's a cool demonstration of writing a Boot script that 
> starts a web server at the top level of the file:
>
>
> https://medium.com/@bendyorke/0-to-clojure-in-less-than-10-lines-of-code-789b360f
>
> On Thursday, August 11, 2016 at 8:46:32 AM UTC-4, John White wrote:
>>
>> Hello,
>>
>> Does anyone know how to make Clojure behave more like ClojureScript when 
>> compiling?
>>
>> That is, I don't want the top level forms evaluated - just analyzed and 
>> compiled, so I can write a script of top level forms that won't run when I 
>> compile the clj?
>>
>> Thanks,
>> John
>>
>

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