Michael Fogus's Blog, page 25

September 21, 2010

A Response to Ineffectual Java-NG Proposals

// There is a difference between classes and data

// All classes and data are immutable by default public data Person { String name; Int age;

// return type inference public toString() { return name + " is " + age; }

}

// somewhere else

// Chains replace the need for ordered arg [...:]

 •  0 comments  •  flag
Share on Twitter
Published on September 21, 2010 20:20

September 13, 2010

(take 6 (george-jahad))

George Jahad is, in my estimation, one of the most exciting Clojure hackers...
 •  0 comments  •  flag
Share on Twitter
Published on September 13, 2010 07:00

September 3, 2010

Monkeying with Clojure's deftest

Say you have a namespace a that needs to be tested: 1 (ns a) (defn ^{:private true} foo [:] 42) Using Clojure's clojure.test libs you might think it would be as simple as the following: (ns b (:use [clojure.test :only [deftest is]])) (deftest test-foo (is (= 42 (a/foo)))) ; java.lang.IllegalStateException: var: #'a/foo is not public [...:]
 •  0 comments  •  flag
Share on Twitter
Published on September 03, 2010 13:25

August 30, 2010

(Community Standards)

As with any Lisp ever created, Clojure has recently been infected with talk of alternative layout styles of closing (and in some cases, open) parentheses...
 •  0 comments  •  flag
Share on Twitter
Published on August 30, 2010 08:45

August 18, 2010

Monkeying with Clojure's comp Function

A slight modification to Clojure's comp function gives me more power...
 •  0 comments  •  flag
Share on Twitter
Published on August 18, 2010 12:42

August 10, 2010

Monkeying with Clojure's defmethod Macro

I've at times found the need to use the precise match form of Clojure's multimethod dispatch value -- so created a macro to make it a little easier.
 •  0 comments  •  flag
Share on Twitter
Published on August 10, 2010 12:16

August 6, 2010

MartinOdersky take(5) toList

Dr. Martin Odersky on Scala and Clojure.
 •  0 comments  •  flag
Share on Twitter
Published on August 06, 2010 07:32

August 5, 2010

Joy of Clojure – In the Books!

Chouser and I have finished our book...
 •  0 comments  •  flag
Share on Twitter
Published on August 05, 2010 10:16

August 3, 2010

(take 5 (brenton-ashworth))

renton Ashworth is relatively new to the Clojure community, but has already created four interesting (and useful) projects...
 •  0 comments  •  flag
Share on Twitter
Published on August 03, 2010 12:57

July 19, 2010

(take 7 (david-nolen))

David Nolen is the lead developer of the ShiftSpace project and is a Clojure / Javascript / Squeak / Haskell / C / Objective-C developer who recently made waves with his series of posts comparing node.js and the Aleph library. David fights the good fight on Hacker News and provides the world with source [...:]
 •  0 comments  •  flag
Share on Twitter
Published on July 19, 2010 06:15