DEFINER

DEFINER is a small hack which demonstrates the power of CL macro facilities.

It is provided as a Library in www.common-lisp.net.

Essentially it allows for a (let's say it!) Pythonesque, or better, a Dylan-like syntax for variuos definition forms. E.g.

  (def var foo 42)

(def class panda (animal))

(def struct tree-node content left right)

(def method bar ((x string)) (print x))

(def method bar :after ((x string)) (print "Just printed a string!"))

Full documentation is in the web site.


You may want to check out cl-def which is the result of the NIH syndrome (or just a different implementation which is more flexible).


This page is linked from: cl-def  

CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively