Friday, 18 November 2011

Learning Clojure: Part 6

Well I'm about 1/6 of the way into Programming Clojure and liking what I'm reading.

Incidentally, "1/6" would naturally evaluate to a value of a special ratio type. Not something I'm aware of in any other language. It all seems to be a part of Clojure's determination to provide a numerical system that allows effortless correct results. Like automagically switching between Java's Integer and BigDecimal types as required.

On the downside, that precision may come at a cost: http://vimeo.com/11644722

Progress

I finally feel like I'm making some real progress. After a few days under the weather I've been playing at the REPL and writing functions. The syntax is looking much less alien. And I feel like I'm taking more in. I defined a complex number struct today. And a function to multiply them together. These will hopefully be useful in plotting fractals in due course.

No comments:

Post a Comment