A new version of Clojuresque is released! Changes to v1.1.0:
Another idea on cutting down parentheses in Lisp (in particular Clojure). This somehow never dies… Can we ever get rid of this strawman?
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...
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 Macro | Expansion | |
'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)
?
I'm a long-time Clojure user and the developer of several open source projects mostly involving Clojure. I try to actively contribute to the Clojure community.
My most active projects are at the moment VimClojure, Clojuresque and ClojureCheck.
Copyright © 2009-2014 All Right Reserved. Meikel Brandmeyer