diff options
author | colin <colin@cicadas.surf> | 2024-04-19 06:41:11 -0700 |
---|---|---|
committer | colin <colin@cicadas.surf> | 2024-04-19 06:41:11 -0700 |
commit | 6e075d897d8f293c17e52cb41fd50d5660e0db55 (patch) | |
tree | 8d68cff552ee828cbc9971234966ad1bf1e91137 | |
parent | 9beaef57b74cd9246482d684e04a4b3fbda9b262 (diff) |
modify expansion of ?
-rw-r--r-- | obwyn.lisp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -51,12 +51,12 @@ (t `(progn ,form ,expanded)))) - (:unless + (:when (cond ((null expanded) form) ((eq 'cl:progn (first expanded)) - `(progn (unless ,form (return)) ,@(rest expanded))) + `(when ,form ,@(rest expanded))) (t - `(progn (unless ,form (return)) ,expanded)))) + `(when ,form ,expanded)))) (:mvbind `(multiple-value-bind @@ -127,7 +127,7 @@ (<predicate-clause> :match (:seq (:= :?) (:item)) - :then (list :unless nil (second <predicate-clause>))) + :then (list :when nil (second <predicate-clause>))) (<simple-clause> :match (:@ simple (:item)) |