Re: ClojureScript ord-of-char?

2016-02-09 Thread nick rothwell
r type in > ClojureScript only strings. > > David > > On Tue, Feb 9, 2016 at 1:01 PM, nick rothwell > wrote: > >> Dumb question: should I be able to get the ordinal value of a character >> in ClojureScript via something like >> >> (int \A) >&

ClojureScript ord-of-char?

2016-02-09 Thread nick rothwell
Dumb question: should I be able to get the ordinal value of a character in ClojureScript via something like (int \A) ? This does exactly what I'd expect in Clojure. In ClojureScript it seems to compile to "A" | 0 which evaluates to 0. (I'm now doing (.charCodeAt \A) which works fine.) [org.

[ANN] Clojure-powered Dance Double Bill (London, November 8th)

2014-10-22 Thread nick rothwell
Blog entry with details here: http://www.cassiel.com/2014/10/18/networked-bodies-watermans/ One of the pieces is audio-responsive with HD visuals in Quil; the other is running in Field (Java->Jython->Clojure), live coded by myself on stage in London and Kate (the choreographer) in Light Table,

Re: Namespaced symbols, and errors

2013-03-09 Thread nick rothwell
hemselves (they are literals that evaluate to themselves), they are > not aliases for something else. > > [1] http://clojure.org/reader > > On 8 March 2013 16:56, nick rothwell > > wrote: > > Typing the following at a REPL: > > > > (str ::junk/junk

Namespaced symbols, and errors

2013-03-08 Thread nick rothwell
Typing the following at a REPL: (str ::junk/junk) (where there's no alias for junk) gives me: RuntimeException Invalid token: ::junk/junk clojure.lang.Util.runtimeException (Util.java:219) RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException (Util.java:219) A couple of

No doseq inside finally?

2013-01-30 Thread nick rothwell
Is there a reason why this isn't allowed? user> (try nil (finally (doseq [x (range 10)] (println x CompilerException java.lang.UnsupportedOperationException: Cannot recur from catch/finally, compiling:(NO_SOURCE_PATH:1) Is this some JVM restriction? -- -- You received this message becaus

Re: (#({:a %}) :b)

2012-06-04 Thread nick rothwell
This one has caught me once or twice as well: #(xxx) evaluates "(xxx)", not "xxx". My usual mistake is ... #([1 % 3]) ... My rather verbose workround is ... #(identity [1 % 3]) ... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: [ANN] Leiningen 2.0.0-preview6 released

2012-06-03 Thread nick rothwell
On Sunday, June 3, 2012 5:22:51 AM UTC+1, Phil Hagelberg wrote: > > I hope this addresses the issues people were seeing with preview5. > It does address the issue that my preview4 wouldn't upgrade; I've now just successfully bumped from preview4 to preview6. Thanks! -- You received this mess

Re: [ANN] Leiningen 2.0.0-preview5 released

2012-06-02 Thread nick rothwell
I seem to not be getting an upgrade. :-( (I then followed the re-download instructions, and got preview4 again.) bash-3.2$ ~/lein2 upgrade The script at /Users/nick/lein2 will be upgraded to the latest preview version. Do you want to continue [Y/n]? Y Upgrading... % Total% Received % Xfer

Re: Pulling constants out of interfaces

2012-04-30 Thread nick rothwell
Great - thanks, yes, it's Foo$Bar/BAZ after an import of Foo$Bar. Thanks everyone for saving me from more hours inside all the proxy apparatus. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Pulling constants out of interfaces

2012-04-30 Thread nick rothwell
I'm faced with the following in some legacy code: public interface Foo { interface Bar { ... String BAZ = "baz"; ... }} Is there any way of accessing Foo.Bar.BAZ in the Clojure world? I've tried various combinations of proxying and reifying with no joy. -- You received this message because you

Re: [ANN] Leiningen 2.0.0-preview3

2012-04-13 Thread nick rothwell
Trivial bug report: saying lein new throws an ArityException rather than reporting an error and suggesting usage. -- 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