eeeickythump / defstar
Common lisp macros for easy type declaration within definitions of functions and variables.
Clone this repository (size: 74.5 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/eeeickythump/defstar
DEFSTAR
Painless type declaration and value checking for Common Lisp
DEFSTAR is a library of Common Lisp macros that can be used in place of DEFUN, DEFMETHOD, DEFGENERIC, DEFVAR, DEFPARAMETER, FLET, LABELS and LAMBDA. Each macro has the same name as the form it replaces, with a star added at the end (e.g. DEFUN*).
The macros allow:
- easy inclusion of type declarations within lambda lists
- easy inclusion of return type declarations in function and method definitions
- easy inclusion of assertions for each argument and for the function's return value
Documentation
See the file defstar.html in the html/ subdirectory of the repository for full documentation.
Examples
This revision is from 2010-02-06 08:31
