Re: escape characters to make a string literal

2017-03-30 Thread Brian Craft
The specification seems ambiguous on this point. The definition of strings doesn't mention hex or octal escapes, but the definition of characters does. No relationship between characters and strings is specified. Characters are unicode, apparently; strings are unspecified. On Thursday, March

[JOB] Kira Systems is looking for a Clojure Web Developer

2017-03-30 Thread Brave Clojure Jobs
"Kira Systems is a Toronto-based startup using machine learning to automate legal work. We're looking for a developer to be a part of the core team for our Clojure and ClojureScript web application. Our stack includes reactive single-page web client code and a distributed backend to handle

Concurrency exercises for research project

2017-03-30 Thread 'David Link' via Clojure
Hi, I just wanted ask if there are some developers who are familiar with concurrency in clojure and how to use atoms, agents, refs, etc. properly. For my university research project I wanted to create two or three example exercises, which cover how to use these concurrency methods properly. So

Re: escape characters to make a string literal

2017-03-30 Thread Christophe Grand
A funny thing is that octal or hexadecimal escapes are not part of EDN (even if most readers recognize them). On Wed, Mar 29, 2017 at 8:49 PM, Brian Craft wrote: > A funny hole in the meta-programming story. I don't think the String or > Character classes have methods

Re: Java object in eval

2017-03-30 Thread 'Burt' via Clojure
Hi Dennis, when I quote the whole vector for let, the function that defines the symbol D is called while evaluating the eval form. But in the context I want to use the object bound to the symbol, the object has to be generated outside of eval and just be used in eval replacing the symbol D in

Re: Java object in eval

2017-03-30 Thread dennis zhuang
You should quote the binding vector: (let [v '[D (LocalDate/of 2017 03 30)] f '(.getYear D)] (eval `(let ~v ~f))) 2017-03-30 16:04 GMT+08:00 'Burt' via Clojure : > Hi, > > I want to pass Java objects to a piece of code via let and then get it > evaluated with

Java object in eval

2017-03-30 Thread 'Burt' via Clojure
Hi, I want to pass Java objects to a piece of code via let and then get it evaluated with eval. An minimal example: (ns eval (:import (java.time LocalDate))) (let [v ['S (String. "ab")] f '(.length S)] (eval `(let ~v ~f))) ; => 2 (let [v ['D (LocalDate/of 2017 03 30)] f