A collection of miscellaneous standalone utility packages for Common Lisp that I've written.
An ASDF system definition exists in
but it is mostly for convenience and every file listed in
is standalone and can be loaded or copied individually.
There are also zero external dependencies,
(other than the convenience
is entirely standalone.
It is available in
under the system name
you can manually copy the files of interest into your project.
bind— A special
BINDmacro that looks like
LETbut supports destructuring, multiple value capture, sequential binding (
LET*-like), and using
WITH-style functions like
WITH-OPEN-FILE. Heavily inspired by Scott L. Burson's "New Let" and Ron Garret's
BINDING-BLOCK, (readers will note that it's basically just features from the above macros but in a syntax I personally prefer, and also not shadowing stuff from
dbc— Basic Design by Contract inspired by Ada's DbC design.
shorthand-lambdas— Allows enabling a new reader syntax, when prefixing a form with
^will implicitly wrap it in a
(lambda () ...). Inside that form, the symbol
$will insert a new argument. A symbol of format
$numberwill (re)use that index argument from the argument list (arguments are one-indexed).
comment-sexps— Allows enabling a new reader syntax, prefixing any form (parenthesized expression or atom) with
#;will comment it out and cause it to be ignored, equivalently to the same comment syntax in Scheme.
nytpu.lisp-utils— Provides a helper function to enable all reader syntax extensions provided by the
NYTPU.LISP-UTILSsystem. The only package that depends on other packages, it depends on
Any contributions are welcome!
The upstream URL of this project is https://git.sr.ht/~nytpu/nytpu.lisp-utils. Send suggestions, bugs, patches, and other contributions to ~firstname.lastname@example.org or <alex [at] nytpu.com>. For help sending a patch through email, see https://git-send-email.io.
If you aren't comfortable sending a patch through email, get in touch with a link to your version of the repo and I'll pull the changes down myself!
Copyright (C) 2022-2023 nytpu <alex [at] nytpu.com>.