Re: Advice on introducing a Java dev to Clojure

2015-07-12 Thread Matt Bailey
Johanna,

I noticed you mentioned CQRS. In my work, we use CQRS heavily, specifically 
the Axon framework for Java (utilizing Spring and Hibernate). I got into 
Clojure through watching Rich Hickey's talks and figured that any language 
that he wrote had to be good.

It's remarkable to me how cleanly the concepts applied in CQRS map to 
concepts in Clojure. The funny thing is that CQRS would never be necessary 
if it wasn't for languages like C# and Java.

It can be discouraging to see people's eyes glaze over when you talk about 
code as a series of transformations on the input. Many people limit their 
understanding of code to a very procedural style with ifs, elses and 
"helper methods" that have side effects.

Sorry I don't have any words of wisdom on how to evangelize Clojure, but I 
am glad to see someone else noted the parallels between CQRS and a more 
functional style of programming.

Cheers!
-Matt

On Saturday, July 11, 2015 at 2:47:31 PM UTC-7, Johanna Belanger wrote:
>
> That's really cool, thanks!
>
> On Saturday, July 11, 2015 at 5:27:37 AM UTC-7, juvenn wrote:
>>
>>  Hi Johanna, 
>>
>> I don’t know if it'll work for your team, but I find Shaun Le Bron's 
>> "Interactive guide to Tetris in ClojureScript” the most succinct and 
>> beautiful way of showing power of Clojure and ClojureScript.
>>
>> https://github.com/shaunlebron/t3tr0s-slides
>>
>> Have fun!
>> -- 
>> Juvenn Woo
>> Sent with Sparrow 
>>
>> On Saturday, 11 July, 2015 at 1:24 pm, Johanna Belanger wrote:
>>
>> I ended up giving him a brief description of Clojure, with stress on its 
>> ability to do heavy lifting with very little code, and sent him a link to 
>> Neal Ford's talk "The Curious Clojurist" 
>> . We'll see what happens. 
>> Thanks everyone for your advice.
>>
>> On Thursday, July 9, 2015 at 3:20:23 PM UTC-7, Johanna Belanger wrote:
>>
>> Hi :)
>>
>> I've recently broached the subject of Clojure with another dev in my 
>> organization, and his response was basically "What's Clojure"? and I'm not 
>> sure how to answer that in a way that might inspire him. "It's a 
>> dynamically-typed functional Lisp with persistent immutable data structures 
>> that runs on the JVM" doesn't seem like it will grab his interest. =)
>>
>> I work primarily in .NET, and he does enterprise Java. I don't know him 
>> well enough to know how happy he is with it. He did express interest in 
>> learning .Net.
>>
>>  I came to an appreciation of Clojure through 
>>
>> -CQRS (the power of decomplection!)
>> -Sussman and Abelson's SICP class at MIT online (the power of 
>> homoiconicity and functions!)
>> -the death of Silverlight (alternatives to Javascript in the browser?)
>>
>> By the time I found Rich Hickey's talks (eg Simple Made Easy) I was 
>> pretty well primed to love Clojure. I've been using it for little personal 
>> projects and prototyping for a couple of years, but I haven't put it in 
>> production because no one else here knows it.
>>
>> Could anyone tell me how they got from enterprise Java to Clojure?
>>
>> Thanks very much,
>> Johanna
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


Re: Advice on introducing a Java dev to Clojure

2015-07-12 Thread Colin Yates
My latest project uses a CQRS and event sourcing design and the power it gives, 
coupled with Clojure is just fantastic. Hydrating an object becomes (merge {} 
(event-store/load ar-id)) - just fantastic.

I too find a lot of sympathy between CQRS, event sourcing, FRP and Clojure 
which I keep meaning to blog about, but my todo list is a mile long. Still, 
highly recommend that architecture. Lots of downsides; everything is a trade 
off, but conceptually, yeah, it gets a lot right.

> On 12 Jul 2015, at 05:34, Matt Bailey  wrote:
> 
> Johanna,
> 
> I noticed you mentioned CQRS. In my work, we use CQRS heavily, specifically 
> the Axon framework for Java (utilizing Spring and Hibernate). I got into 
> Clojure through watching Rich Hickey's talks and figured that any language 
> that he wrote had to be good.
> 
> It's remarkable to me how cleanly the concepts applied in CQRS map to 
> concepts in Clojure. The funny thing is that CQRS would never be necessary if 
> it wasn't for languages like C# and Java.
> 
> It can be discouraging to see people's eyes glaze over when you talk about 
> code as a series of transformations on the input. Many people limit their 
> understanding of code to a very procedural style with ifs, elses and "helper 
> methods" that have side effects.
> 
> Sorry I don't have any words of wisdom on how to evangelize Clojure, but I am 
> glad to see someone else noted the parallels between CQRS and a more 
> functional style of programming.
> 
> Cheers!
> -Matt
> 
> On Saturday, July 11, 2015 at 2:47:31 PM UTC-7, Johanna Belanger wrote:
> That's really cool, thanks!
> 
> On Saturday, July 11, 2015 at 5:27:37 AM UTC-7, juvenn wrote:
> Hi Johanna,
> 
> I don’t know if it'll work for your team, but I find Shaun Le Bron's 
> "Interactive guide to Tetris in ClojureScript” the most succinct and 
> beautiful way of showing power of Clojure and ClojureScript.
> 
> https://github.com/shaunlebron/t3tr0s-slides 
> 
> 
> Have fun!
> -- 
> Juvenn Woo
> Sent with Sparrow 
> 
> On Saturday, 11 July, 2015 at 1:24 pm, Johanna Belanger wrote:
> 
>> I ended up giving him a brief description of Clojure, with stress on its 
>> ability to do heavy lifting with very little code, and sent him a link to 
>> Neal Ford's talk "The Curious Clojurist" 
>> . We'll see what happens. 
>> Thanks everyone for your advice.
>> 
>> On Thursday, July 9, 2015 at 3:20:23 PM UTC-7, Johanna Belanger wrote:
>> Hi :)
>> 
>> I've recently broached the subject of Clojure with another dev in my 
>> organization, and his response was basically "What's Clojure"? and I'm not 
>> sure how to answer that in a way that might inspire him. "It's a 
>> dynamically-typed functional Lisp with persistent immutable data structures 
>> that runs on the JVM" doesn't seem like it will grab his interest. =)
>> 
>> I work primarily in .NET, and he does enterprise Java. I don't know him well 
>> enough to know how happy he is with it. He did express interest in learning 
>> .Net.
>> 
>>  I came to an appreciation of Clojure through 
>> 
>> -CQRS (the power of decomplection!)
>> -Sussman and Abelson's SICP class at MIT online (the power of homoiconicity 
>> and functions!)
>> -the death of Silverlight (alternatives to Javascript in the browser?)
>> 
>> By the time I found Rich Hickey's talks (eg Simple Made Easy) I was pretty 
>> well primed to love Clojure. I've been using it for little personal projects 
>> and prototyping for a couple of years, but I haven't put it in production 
>> because no one else here knows it.
>> 
>> Could anyone tell me how they got from enterprise Java to Clojure?
>> 
>> Thanks very much,
>> Johanna
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.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

Re: Advice on introducing a Java dev to Clojure

2015-07-12 Thread Colin Yates
I do of course mean (reduce merge {} (event-store/load ar-id)) or (apply merge 
(event-store/load ar-id)) :)

> On 12 Jul 2015, at 16:21, Colin Yates  wrote:
> 
> My latest project uses a CQRS and event sourcing design and the power it 
> gives, coupled with Clojure is just fantastic. Hydrating an object becomes 
> (merge {} (event-store/load ar-id)) - just fantastic.
> 
> I too find a lot of sympathy between CQRS, event sourcing, FRP and Clojure 
> which I keep meaning to blog about, but my todo list is a mile long. Still, 
> highly recommend that architecture. Lots of downsides; everything is a trade 
> off, but conceptually, yeah, it gets a lot right.
> 
>> On 12 Jul 2015, at 05:34, Matt Bailey > > wrote:
>> 
>> Johanna,
>> 
>> I noticed you mentioned CQRS. In my work, we use CQRS heavily, specifically 
>> the Axon framework for Java (utilizing Spring and Hibernate). I got into 
>> Clojure through watching Rich Hickey's talks and figured that any language 
>> that he wrote had to be good.
>> 
>> It's remarkable to me how cleanly the concepts applied in CQRS map to 
>> concepts in Clojure. The funny thing is that CQRS would never be necessary 
>> if it wasn't for languages like C# and Java.
>> 
>> It can be discouraging to see people's eyes glaze over when you talk about 
>> code as a series of transformations on the input. Many people limit their 
>> understanding of code to a very procedural style with ifs, elses and "helper 
>> methods" that have side effects.
>> 
>> Sorry I don't have any words of wisdom on how to evangelize Clojure, but I 
>> am glad to see someone else noted the parallels between CQRS and a more 
>> functional style of programming.
>> 
>> Cheers!
>> -Matt
>> 
>> On Saturday, July 11, 2015 at 2:47:31 PM UTC-7, Johanna Belanger wrote:
>> That's really cool, thanks!
>> 
>> On Saturday, July 11, 2015 at 5:27:37 AM UTC-7, juvenn wrote:
>> Hi Johanna,
>> 
>> I don’t know if it'll work for your team, but I find Shaun Le Bron's 
>> "Interactive guide to Tetris in ClojureScript” the most succinct and 
>> beautiful way of showing power of Clojure and ClojureScript.
>> 
>> https://github.com/shaunlebron/t3tr0s-slides 
>> 
>> 
>> Have fun!
>> -- 
>> Juvenn Woo
>> Sent with Sparrow 
>> 
>> On Saturday, 11 July, 2015 at 1:24 pm, Johanna Belanger wrote:
>> 
>>> I ended up giving him a brief description of Clojure, with stress on its 
>>> ability to do heavy lifting with very little code, and sent him a link to 
>>> Neal Ford's talk "The Curious Clojurist" 
>>> . We'll see what happens. 
>>> Thanks everyone for your advice.
>>> 
>>> On Thursday, July 9, 2015 at 3:20:23 PM UTC-7, Johanna Belanger wrote:
>>> Hi :)
>>> 
>>> I've recently broached the subject of Clojure with another dev in my 
>>> organization, and his response was basically "What's Clojure"? and I'm not 
>>> sure how to answer that in a way that might inspire him. "It's a 
>>> dynamically-typed functional Lisp with persistent immutable data structures 
>>> that runs on the JVM" doesn't seem like it will grab his interest. =)
>>> 
>>> I work primarily in .NET, and he does enterprise Java. I don't know him 
>>> well enough to know how happy he is with it. He did express interest in 
>>> learning .Net.
>>> 
>>>  I came to an appreciation of Clojure through 
>>> 
>>> -CQRS (the power of decomplection!)
>>> -Sussman and Abelson's SICP class at MIT online (the power of homoiconicity 
>>> and functions!)
>>> -the death of Silverlight (alternatives to Javascript in the browser?)
>>> 
>>> By the time I found Rich Hickey's talks (eg Simple Made Easy) I was pretty 
>>> well primed to love Clojure. I've been using it for little personal 
>>> projects and prototyping for a couple of years, but I haven't put it in 
>>> production because no one else here knows it.
>>> 
>>> Could anyone tell me how they got from enterprise Java to Clojure?
>>> 
>>> Thanks very much,
>>> Johanna
>>> 
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com <>.
>>> For more options, visit https://groups.google.com/d/optout 
>>> .
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Go

Re: [ANN] suchwow: a grab-bag library with some twists

2015-07-12 Thread Colin Fleming
I just saw this the other day, in particular the better docstrings are
great. See also Andy Fingerhut's Thalia
 project. I'm planning to provide
doc from both of these in Cursive soon.

On 12 July 2015 at 01:34, Brian Marick  wrote:

> https://github.com/marick/suchwow
>
> Partly this is yet another collection of useful functions, but it has
> grown some unusual features:
>
> * I am a bear of very little brain. As such, the official Clojure doc
> strings are sometimes unclear to me. When that happens, I add new doc
> strings to `such.better-doc`
> http://marick.github.io/suchwow/such.better-doc.html. Including that
> namespace adjusts the `clojure.core` doc strings.
>
> * `find-var`'s insistence on a namespace-qualified symbol kept making me
> write code to slap a namespace onto a symbol. So I wrote a function,
> `+find-symbol`, that accepts both a namespace and a name.
> http://marick.github.io/suchwow/such.wide-domains.html is a small, at the
> moment, collection of functions that allow a wider variety of inputs than
> their `clojure.core` equivalents.
>
> * Like-I think-many people, I've collected a variety of functions that I
> think of as part of my own `clojure.core`. Building on Zach Tellman's fine
> `potemkin.namespaces`, I've written some functions to make creating such
> "favorite functions" namespaces easier. For example, I want everything in
> `clojure.string` always available, so I've arranged for the following:
>
> (use 'commons.clojure.core)
> (str-trim "   f   ") => "f"
>
> All of this is public domain, using the Unlicense ,
> so you can copy and paste whatever code you like without having to give
> credit, refer to licenses, etc.
>
> --
> 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.
>

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


2 way transform in single definition ? unification ?

2015-07-12 Thread Jules
Guys,

I have an external and an internal data representation.

I need to define transforms both ways.

Both models are structured.

A pair of in/out functions might look like:

(fn [{{b :b c c:} :a}] [b [c]])

(fn [[b [c]] {:a {:b b :c c}})

I just typed that OTTOMH so please forgive any mistakes.

I have about 50 of these to define and maintain and I may have further 
representations to map to in the future.

My question - Is there a library that will allow me to define the 
relationship between the two representations declaratively and then 
generate the transform functions from that single src.

Ideally it would allow me to extend it to construct/destructure e.g. 
joda-time class instances etc as some of my internal rep uses these.

It feels a bit like unification in PROLOG...

Looking forward to hearing your ideas.

regards,


Jules

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


How do I expand a variable that I pass to a macro?

2015-07-12 Thread Lynn Dylan Hurley
Here is what I'm trying to do:

---

;; route defined outside of the defroutes macro
(def foo-route ["/" {:get foo-handler}])
 
(defroutes routes
  [[["/"
  ;; I'm trying to do this, but it does NOT work
  ["/foo" foo-route]
 
  ;; this does work
  ["/bar" ["/" {:get bar-handler}])

---

Where `defroutes` is a macro defined by pedestal. I've tried this a million 
different ways and nothing seems to work. Is what I'm trying to do even 
possible?

-- 
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: [ANN] suchwow: a grab-bag library with some twists

2015-07-12 Thread Brian Marick



Colin Fleming wrote:

I just saw this the other day, in particular the better docstrings are
great. See also Andy Fingerhut's Thalia
 project. I'm planning to provide
doc from both of these in Cursive soon.


That does look nice. Wish I'd known of it earlier. I should probably 
merge my stuff in, if it's even needed.


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


Deprecation library

2015-07-12 Thread Brian Marick
Is there a library out there for deprecating functions? I'm looking for 
something that prints a deprecation message, but only once, allows 
deprecation messages to be turned off (probably from environment 
variable), and perhaps allows something other than `println` to be 
plugged in as the message-printer.


If not, I'll extract the one from Midje.

--
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: [ANN] suchwow: a grab-bag library with some twists

2015-07-12 Thread Daniel Compton
cljs.info have also done a heap of work on improving docstrings too.
On Mon, 13 Jul 2015 at 9:15 AM Brian Marick  wrote:

>
>
> Colin Fleming wrote:
> > I just saw this the other day, in particular the better docstrings are
> > great. See also Andy Fingerhut's Thalia
> >  project. I'm planning to provide
> > doc from both of these in Cursive soon.
>
> That does look nice. Wish I'd known of it earlier. I should probably
> merge my stuff in, if it's even needed.
>
> --
> 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.
>
-- 
--
Daniel

-- 
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: Deprecation library

2015-07-12 Thread Alex Kolov
Am Sonntag, 12. Juli 2015, 16:17:50 schrieb Brian Marick:
> Is there a library out there for deprecating functions? I'm looking for
> something that prints a deprecation message, but only once, allows
> deprecation messages to be turned off (probably from environment
> variable), and perhaps allows something other than `println` to be
> plugged in as the message-printer.
> 
> If not, I'll extract the one from Midje.

Maybe https://github.com/alexander-yakushev/defprecated
It works for me.

Alex

-- 
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: Deprecation library

2015-07-12 Thread Andy Fingerhut
Eastwood warns about deprecated Clojure functions and Java methods (among
other things).

https://github.com/jonase/eastwood#deprecations

Andy

On Sun, Jul 12, 2015 at 2:17 PM, Brian Marick  wrote:

> Is there a library out there for deprecating functions? I'm looking for
> something that prints a deprecation message, but only once, allows
> deprecation messages to be turned off (probably from environment variable),
> and perhaps allows something other than `println` to be plugged in as the
> message-printer.
>
> If not, I'll extract the one from Midje.
>
> --
> 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.
>

-- 
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: clojure don't support .clj source code file by utf-8.

2015-07-12 Thread Sungjin Chun
On Mac OS X (Yosemite) and Linux (Ubuntu), this code works well (I'm using 
en_US.UTF-8 as 
charset and encoding for my system).

I suspect that the OS (Windows) or its configuration is the source of the 
problem.

On Sunday, July 12, 2015 at 10:57:59 AM UTC+9, Denis Fuenzalida wrote:
>
> I was able to reproduce an error involving Windows 7 and UTF-8 in a 
> virtual machine with VirtualBox 4.3 (not sure if it is the issue that Alex 
> experienced though):
>
> * Installed Windows 7, then used Ninite.com to install Notepad++ (text 
> editor), Oracle JDK 8 (1.8.0_45). Installed Leiningen 2.5.1 as .bat file 
> from the website.
> * Created a new leiningen project with "lein new app utf8test"
> * Opened the file src/utf8test/core.clj in Notepad++ and replaced the 
> contents of with the following:
>
> (ns utf8test.core (:gen-class))
> (defn saludo-año [año] (str "Saludos en el año " año))
> (def saludo-japonés "どうもありがとう")
> (defn -main [& args]
>   (println (saludo-año 2015))
>   (println saludo-japonés))
>
> * On Notepad++ went to the Encoding menu and selected "Encoding in UTF-8 
> w/o BOM". Saved the file. When running "lein run" on the cmd.exe console it 
> works but it outputs garbage instead of any non-ascii character (see 
> http://i.imgur.com/H0rngyq.png)
>
> * To trigger the compilation error, change the encoding of the file in 
> Notepad++ to "Encoding in UTF-8". Save the file. When running "lein run" 
> this time it will not compile and complains about being unable to resolve a 
> symbol (see http://i.imgur.com/3SHegTH.png) ... however, if you type the 
> contents of the file in the cmd.exe console (with "type 
> src\utf8test\core.clj") you'll see there's some extra garbage chars before 
> the namespace declaration.
>
> My theory is that such garbage chars are the Byte Order Mark (BOM) Unicode 
> character (https://en.wikipedia.org/wiki/Byte_order_mark) and they are 
> not being correctly handled in Windows somewhere in the stack.
>
> I don't use Windows regularly and I never had UTF-8 issues on Linux though.
>
> --
>
> Denis Fuenzalida
>
>
> El jueves, 9 de julio de 2015, 12:33:46 (UTC-7), Daniel Compton escribió:
>>
>> Hi Alex
>>
>> You'll need to give us some more information about this to help us 
>> troubleshoot what's going on. Can you share the file with us?
>> On Fri, 10 Jul 2015 at 3:59 AM Alex Woods  wrote:
>>
>>> clojure don't support .clj source code file by utf-8.
>>> it's ok when the .clj source code files by  ascii 
>>>
>>> env:
>>> windows7,jdk1.8u45,lein2.5.0
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> --
>> Daniel
>>
>

-- 
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: clojure don't support .clj source code file by utf-8.

2015-07-12 Thread Luc Prefontaine
Windows a problem ?
N, impossible :)))

Luc P.

Sent from my iPhone

> On Jul 12, 2015, at 19:39, Sungjin Chun  wrote:
> 
> On Mac OS X (Yosemite) and Linux (Ubuntu), this code works well (I'm using 
> en_US.UTF-8 as 
> charset and encoding for my system).
> 
> I suspect that the OS (Windows) or its configuration is the source of the 
> problem.
> 
>> On Sunday, July 12, 2015 at 10:57:59 AM UTC+9, Denis Fuenzalida wrote:
>> I was able to reproduce an error involving Windows 7 and UTF-8 in a virtual 
>> machine with VirtualBox 4.3 (not sure if it is the issue that Alex 
>> experienced though):
>> 
>> * Installed Windows 7, then used Ninite.com to install Notepad++ (text 
>> editor), Oracle JDK 8 (1.8.0_45). Installed Leiningen 2.5.1 as .bat file 
>> from the website.
>> * Created a new leiningen project with "lein new app utf8test"
>> * Opened the file src/utf8test/core.clj in Notepad++ and replaced the 
>> contents of with the following:
>> 
>> (ns utf8test.core (:gen-class))
>> (defn saludo-año [año] (str "Saludos en el año " año))
>> (def saludo-japonés "どうもありがとう")
>> (defn -main [& args]
>>   (println (saludo-año 2015))
>>   (println saludo-japonés))
>> 
>> * On Notepad++ went to the Encoding menu and selected "Encoding in UTF-8 w/o 
>> BOM". Saved the file. When running "lein run" on the cmd.exe console it 
>> works but it outputs garbage instead of any non-ascii character (see 
>> http://i.imgur.com/H0rngyq.png)
>> 
>> * To trigger the compilation error, change the encoding of the file in 
>> Notepad++ to "Encoding in UTF-8". Save the file. When running "lein run" 
>> this time it will not compile and complains about being unable to resolve a 
>> symbol (see http://i.imgur.com/3SHegTH.png) ... however, if you type the 
>> contents of the file in the cmd.exe console (with "type 
>> src\utf8test\core.clj") you'll see there's some extra garbage chars before 
>> the namespace declaration.
>> 
>> My theory is that such garbage chars are the Byte Order Mark (BOM) Unicode 
>> character (https://en.wikipedia.org/wiki/Byte_order_mark) and they are not 
>> being correctly handled in Windows somewhere in the stack.
>> 
>> I don't use Windows regularly and I never had UTF-8 issues on Linux though.
>> 
>> --
>> 
>> Denis Fuenzalida
>> 
>> 
>> El jueves, 9 de julio de 2015, 12:33:46 (UTC-7), Daniel Compton escribió:
>>> 
>>> Hi Alex
>>> 
>>> You'll need to give us some more information about this to help us 
>>> troubleshoot what's going on. Can you share the file with us?
 On Fri, 10 Jul 2015 at 3:59 AM Alex Woods  wrote:
 clojure don't support .clj source code file by utf-8.
 it's ok when the .clj source code files by  ascii 
 
 env:
 windows7,jdk1.8u45,lein2.5.0
 
 -- 
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
>>> 
>>> -- 
>>> --
>>> Daniel
> 
> -- 
> 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.

-- 
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: clojure don't support .clj source code file by utf-8.

2015-07-12 Thread Baishampayan Ghose
Hi,

IIRC Windows requires UTF-8 encoded files to have the BOM (Byte Order Mark).
Can you verify that your file has the BOM?

Regards,
BG

On Thu, Jul 9, 2015 at 8:03 AM, Alex Woods  wrote:
> clojure don't support .clj source code file by utf-8.
> it's ok when the .clj source code files by  ascii
>
> env:
> windows7,jdk1.8u45,lein2.5.0
>
> --
> 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.



-- 
Baishampayan Ghose
b.ghose at gmail.com

-- 
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: clojure don't support .clj source code file by utf-8.

2015-07-12 Thread Avi Avicenna
I followed steps described by Denis Fuenzalida in my Windows 7 machine and 
I can completely reproduce the results.

So, in Windows 7, the solution is the .clj files must be saved with UTF-8 
without BOM encoding.

On Sunday, 12 July 2015 08:57:59 UTC+7, Denis Fuenzalida wrote:
>
> I was able to reproduce an error involving Windows 7 and UTF-8 in a 
> virtual machine with VirtualBox 4.3 (not sure if it is the issue that Alex 
> experienced though):
>
> * Installed Windows 7, then used Ninite.com to install Notepad++ (text 
> editor), Oracle JDK 8 (1.8.0_45). Installed Leiningen 2.5.1 as .bat file 
> from the website.
> * Created a new leiningen project with "lein new app utf8test"
> * Opened the file src/utf8test/core.clj in Notepad++ and replaced the 
> contents of with the following:
>
> (ns utf8test.core (:gen-class))
> (defn saludo-año [año] (str "Saludos en el año " año))
> (def saludo-japonés "どうもありがとう")
> (defn -main [& args]
>   (println (saludo-año 2015))
>   (println saludo-japonés))
>
> * On Notepad++ went to the Encoding menu and selected "Encoding in UTF-8 
> w/o BOM". Saved the file. When running "lein run" on the cmd.exe console it 
> works but it outputs garbage instead of any non-ascii character (see 
> http://i.imgur.com/H0rngyq.png)
>
> * To trigger the compilation error, change the encoding of the file in 
> Notepad++ to "Encoding in UTF-8". Save the file. When running "lein run" 
> this time it will not compile and complains about being unable to resolve a 
> symbol (see http://i.imgur.com/3SHegTH.png) ... however, if you type the 
> contents of the file in the cmd.exe console (with "type 
> src\utf8test\core.clj") you'll see there's some extra garbage chars before 
> the namespace declaration.
>
> My theory is that such garbage chars are the Byte Order Mark (BOM) Unicode 
> character (https://en.wikipedia.org/wiki/Byte_order_mark) and they are 
> not being correctly handled in Windows somewhere in the stack.
>
> I don't use Windows regularly and I never had UTF-8 issues on Linux though.
>
> --
>
> Denis Fuenzalida
>
>
> El jueves, 9 de julio de 2015, 12:33:46 (UTC-7), Daniel Compton escribió:
>>
>> Hi Alex
>>
>> You'll need to give us some more information about this to help us 
>> troubleshoot what's going on. Can you share the file with us?
>> On Fri, 10 Jul 2015 at 3:59 AM Alex Woods  wrote:
>>
>>> clojure don't support .clj source code file by utf-8.
>>> it's ok when the .clj source code files by  ascii 
>>>
>>> env:
>>> windows7,jdk1.8u45,lein2.5.0
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> --
>> Daniel
>>
>

-- 
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: How do I expand a variable that I pass to a macro?

2015-07-12 Thread Michael Blume
First of all, I'm pretty sure compojure will let you do the thing, because
it's less macro-heavy than what you're using.

But to answer the general question, this is a fundamental problem with
macros. Once you're making heavy use of macros you start having to write
more macros in order to compose them.

On Sun, Jul 12, 2015 at 1:01 PM Lynn Dylan Hurley <
lynn.dylan.hur...@gmail.com> wrote:

> Here is what I'm trying to do:
>
> ---
>
> ;; route defined outside of the defroutes macro
> (def foo-route ["/" {:get foo-handler}])
>
> (defroutes routes
>   [[["/"
>   ;; I'm trying to do this, but it does NOT work
>   ["/foo" foo-route]
>
>   ;; this does work
>   ["/bar" ["/" {:get bar-handler}])
>
> ---
>
> Where `defroutes` is a macro defined by pedestal. I've tried this a million 
> different ways and nothing seems to work. Is what I'm trying to do even 
> possible?
>
>  --
> 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.
>

-- 
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: How do I expand a variable that I pass to a macro?

2015-07-12 Thread James Reeves
Simple macros are often sugar around functions. In Pedestal, defroutes
appears to be defined as:

(defmacro defroutes [name route-spec]
  `(def ~name (expand-routes (quote ~route-spec

So you could use expand-routes and syntax quotes instead.

- James

On 12 July 2015 at 20:40, Lynn Dylan Hurley 
wrote:

> Here is what I'm trying to do:
>
> ---
>
> ;; route defined outside of the defroutes macro
> (def foo-route ["/" {:get foo-handler}])
>
> (defroutes routes
>   [[["/"
>   ;; I'm trying to do this, but it does NOT work
>   ["/foo" foo-route]
>
>   ;; this does work
>   ["/bar" ["/" {:get bar-handler}])
>
> ---
>
> Where `defroutes` is a macro defined by pedestal. I've tried this a million 
> different ways and nothing seems to work. Is what I'm trying to do even 
> possible?
>
>  --
> 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.
>

-- 
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: Updated Clojure cheatsheet, including new vars in Clojure 1.7.0

2015-07-12 Thread Andy Fingerhut
Thanks to Alex Miller, http://clojure.org/cheatsheet is now updated to the
latest version of the cheat sheet, with links to ClojureDocs.org.

The "Download other versions with tooltips" link near the top of that page
links to here, as usual:

http://jafingerhut.github.io

where you can find the tooltip-enabled versions, with Clojure 1.7.0 doc
strings, and links to either ClojureDocs.org or Grimoire (conj.io).  Both
of those sites have been updated for Clojure 1.7.0.

Andy

On Thu, Jun 18, 2015 at 5:36 PM, Andy Fingerhut 
wrote:

> http://jafingerhut.github.io
>
> I'm jumping the gun a little bit by announcing this, as the links for the
> new Clojure 1.7.0 vars like update, run!, dedupe, etc. do not link to any
> place useful on ClojureDocs.org or Grimoire yet, but I am guessing they
> will in not too long from now, when those sites are updated for Clojure
> 1.7.0 (or some bug in the cheat sheet links for Grimoire is fixed, perhaps).
>
> The other main changes made in the last month or so is to rename the
> section near the lower left that was called "Reader Macros" as "Special
> Characters", and add a lot of special characters there, with names and/or
> links to Clojure documentation about them.
>
> This updated version should make its way to clojure.org/cheatsheet soon
> after Clojure 1.7.0's release, but until then you can always get the latest
> version at the link above.
>
> Andy
>
>

-- 
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: 2 way transform in single definition ? unification ?

2015-07-12 Thread craig worrall
You may have already discounted Java versions, but just in case  ... 
http://www.javacodegeeks.com/2013/10/java-object-to-object-mapper.html

Craig

On Monday, July 13, 2015 at 3:53:19 AM UTC+10, Jules wrote:
>
> Guys,
>
> I have an external and an internal data representation.
>
> I need to define transforms both ways.
>
> Both models are structured.
>
> A pair of in/out functions might look like:
>
> (fn [{{b :b c c:} :a}] [b [c]])
>
> (fn [[b [c]] {:a {:b b :c c}})
>
> I just typed that OTTOMH so please forgive any mistakes.
>
> I have about 50 of these to define and maintain and I may have further 
> representations to map to in the future.
>
> My question - Is there a library that will allow me to define the 
> relationship between the two representations declaratively and then 
> generate the transform functions from that single src.
>
> Ideally it would allow me to extend it to construct/destructure e.g. 
> joda-time class instances etc as some of my internal rep uses these.
>
> It feels a bit like unification in PROLOG...
>
> Looking forward to hearing your ideas.
>
> regards,
>
>
> Jules
>
>

-- 
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: clojure don't support .clj source code file by utf-8.

2015-07-12 Thread Sungjin Chun
Of course not. My files do not have BOM. So the problem lies in the
BOM thingy?

On Mon, Jul 13, 2015 at 10:07 AM Baishampayan Ghose 
wrote:

> Hi,
>
> IIRC Windows requires UTF-8 encoded files to have the BOM (Byte Order
> Mark).
> Can you verify that your file has the BOM?
>
> Regards,
> BG
>
> On Thu, Jul 9, 2015 at 8:03 AM, Alex Woods  wrote:
> > clojure don't support .clj source code file by utf-8.
> > it's ok when the .clj source code files by  ascii
> >
> > env:
> > windows7,jdk1.8u45,lein2.5.0
> >
> > --
> > 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.
>
>
>
> --
> Baishampayan Ghose
> b.ghose at gmail.com
>
> --
> 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/Rk5JGhq-IJY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.