Re: Typedef-like functionality for Clojure records?

2013-09-26 Thread david sheldrick
I'm not sure about your actual questions, but you should note that `foo` is not actually a var which you can reference like `some-ns/foo`. Rather, it is a Class. Consider: user= (defrecord Thing [a b]) user.Thing user= user= (def OtherThing Thing) #'user/OtherThing user= user= (Thing. hello

Re: Sweet-expressions

2013-03-26 Thread david sheldrick
I don't like the idea of infix math as a reader macro. Yeah prefix is weird to read for complex expressions, but in such rare cases there are ordinary macros that let you do infix math. Use them. An interesting thought I had the other day regarding infix math: It would be possible for Clojure

[ANN] cfg - Manage your options.

2013-03-24 Thread david sheldrick
I wrote this thing. It manages your options. I suppose it's pretty useful if you've got a whole bunch of the darn things to keep track of like I have. Go here: https://github.com/ds300/cfg Yeah, there are a bajillion of these already, but, like, mine is definitely way better *seriously guys*.*