Sun, 27 Dec 2009

Point-free Style revisited

As it turns out you shouldn't listen to me that much. I messed up completely with my previous post „Pointfree vs. Pointless“. As Chouser points out: My claims about partial and comp creating classes are totally wrong. Here's why…

See more ...

Published by Meikel Brandmeyer on 27 Dec 2009 01:00

Comments

Clojuresque 1.2.0 released

A new version of Clojuresque is released! Changes to v1.1.0:

See more ...

Published by Meikel Brandmeyer on 27 Dec 2009 00:04

Comments

Sat, 19 Dec 2009

The Parenophobes

Another idea on cutting down parentheses in Lisp (in particular Clojure). This somehow never dies… Can we ever get rid of this strawman?

See more ...

Published by Meikel Brandmeyer on 19 Dec 2009 21:10

Comments

Fri, 18 Dec 2009

Pointfree vs. Pointless

Pointfree style is a way to program in a functional programming language, where the programmer describes the program flow via composition and combination of functions and not by shuffling data around. It is claimed, that this leads to clearer, more elegant programs. But sometimes this way of programming is also called pointless. Some examples revisited...

See more ...

Published by Meikel Brandmeyer on 18 Dec 2009 06:24

Comments

Wed, 09 Dec 2009

with-meta and #^ – equivalent?

Clojure provides a set of reader macros which make life a little easier. They are basically short-hand notations for often used functions/macros. Here is a table:

Reader MacroExpansion
'x(quote x)
@x(deref x)
^x(meta x)
#(x)(fn [] (x))

The astute reader might already have noticed, that #^ is missing from the list. Isn't #^y x equivalent to (with-meta x y)?

See more ...

Published by Meikel Brandmeyer on 09 Dec 2009 07:29

Comments