diff options
author | colin <colin@cicadas.surf> | 2024-11-30 07:29:15 -0800 |
---|---|---|
committer | colin <colin@cicadas.surf> | 2024-11-30 07:29:15 -0800 |
commit | c1029b0f740e09ccac65ab97b3bf9e06bd39e9bd (patch) | |
tree | 72f64ff9480fe1c965a108dc79662d74aadec4f4 | |
parent | d625b07e4491be03450675b19eb8ff63a3a5e4df (diff) |
Remove: alexandria dependency
-rw-r--r-- | def.asd | 3 | ||||
-rw-r--r-- | generic.lisp | 6 | ||||
-rw-r--r-- | util.lisp | 3 |
3 files changed, 7 insertions, 5 deletions
@@ -1,11 +1,10 @@ ;;;; def.asd (asdf:defsystem #:def - :description "Idomatic def* forms." + :description "Idiomatic def forms." :author "colin <colin@cicadas.surf>" :license "Unlicense" :version "0.0.1" - :depends-on (#:alexandria) :serial t :components ((:file "package") (:file "util") diff --git a/generic.lisp b/generic.lisp index d160527..cd8e2a8 100644 --- a/generic.lisp +++ b/generic.lisp @@ -1,8 +1,8 @@ ;;;; An implementation of a kind of generic function. This is not ;;;; terribly CLOSy, as it does not support inheritance. What we have -;;;; is a method selection routine that works on arbitrary types. -;;;; Some effort has been made to emulate CLOS's primary method -;;;; selection. +;;;; is a multiple-dispatch method selection routine that works on +;;;; arbitrary types. Some effort has been made to emulate CLOS's +;;;; primary method selection. (in-package :def) @@ -37,3 +37,6 @@ YES is everything for which PRED is T, NO is everything else." (defun lambda-opt-p (x) (find x '(cl:&optional cl:&key cl:&aux cl:&allow-other-keys cl:&rest) :test #'eq)) + +(defun make-keyword (name) + (intern (string name) :keyword)) |