russolsen/dejour — pull request #4 by trptcolin (2012-02-02 15:03:19+00:00)
Title: Updates examples to work on 1.3 as well

Also fixed a couple missing-paren typos. I found this when trying bin/clj examples/*.clj. There's one error remaining, but it's on purpose. The comments explain it well - it's an unbound symbol used as a function.

There are two changes in particular that might need explanation:

-(* 99999999 999999999999999)
+(* 99999999 (BigInteger. "999999999999999"))

Here it might be nice to use the original 999999999999999 for 1.2, and the BigInt literal 999999999999999N for 1.3, but that's a bigger change.

And:

-(set x '( a b c (d e (f g) h i ) j ))
+(def x '( a b c (d e (f g) h i ) j ))

I think maybe that was intended to be `set!`, which will only work in 1.3 if x was dynamic. I think sidestepping it here by renaming the original var to `y` doesn't hamper the goal of just showing the basics.