read or learn more
λ λ λ
Fogus' Thoughts on life, programming, and thinking
❤ c clj erl pl frink fth cl org pure icl qi ❤
Follow me on Twitter... or RSS...
Run this blog in mobile
2024 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002
As a first step toward a much grander Clojure project I needed a unification library to supplement a simple logic engine (the second step in the larger plan)…
A while back I came across an interesting snippet of Clojure code1 controlling iTunes. I played around with it and eventually morphed it into the code posted on my @learnclojure account. This morning I came across a similarly themed post about Scala’s interaction with Applescript and it inspired me to create the following: [sourcecode lang=”scala” […]
[sourcecode lang=”java” gist=”591070″]// 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 […]
George Jahad is, in my estimation, one of the most exciting Clojure hackers…
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 […]