Improve macro expansion and returns

This commit is contained in:
2025-09-19 23:50:23 -07:00
parent 342bdfb169
commit 7f68c8fcbf
3 changed files with 220 additions and 34 deletions

View File

@ -87,7 +87,8 @@
(throw 'argument-error))))
(apply 'list 'funcall (apply 'list 'lambda
(reverse vars)
'(declare (name nil))
(list 'declare (list 'name
(make-symbol "let")))
body)
(reverse vals)))))
@ -139,7 +140,5 @@
(list 'condition-case form
(pair :finally unwind-forms)))
(defun test ()
(return-from test 10))
(println (test))
(defmacro return (&opt value)
(list 'return-from nil value))