summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2024-04-19 06:41:11 -0700
committercolin <colin@cicadas.surf>2024-04-19 06:41:11 -0700
commit6e075d897d8f293c17e52cb41fd50d5660e0db55 (patch)
tree8d68cff552ee828cbc9971234966ad1bf1e91137
parent9beaef57b74cd9246482d684e04a4b3fbda9b262 (diff)
modify expansion of ?
-rw-r--r--obwyn.lisp8
1 files changed, 4 insertions, 4 deletions
diff --git a/obwyn.lisp b/obwyn.lisp
index 58eeff0..19e2501 100644
--- a/obwyn.lisp
+++ b/obwyn.lisp
@@ -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))