Skip to content

Commit

Permalink
Rework defmacro
Browse files Browse the repository at this point in the history
Now in terms of the more correct `fun`.
Use a SimpleNamespace for hissp.macros._macro_
Rename once-deftype to deftypeonce
Rename once-define to defonce again
  • Loading branch information
gilch committed Aug 21, 2024
1 parent 7cf9c83 commit f33d00f
Show file tree
Hide file tree
Showing 5 changed files with 1,721 additions and 1,384 deletions.
12 changes: 7 additions & 5 deletions docs/lissp_whirlwind_tour.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1828,18 +1828,20 @@ Lissp Whirlwind Tour

(dir _macro_)

;;; This is a copy of of the following module.
;;; This is a copy of of the following namespace.

#> hissp.._macro_
>>> __import__('hissp')._macro_
<module 'hissp.macros._macro_'>
hissp.macros.._macro_

(dir hissp.._macro_)
(dir hissp.macros.._macro_)

;;; Notice its containing module. Take a minute to read its docstring.

(help hissp.macros.)

;;; As a convenience, hissp.__init__ imports it as well:

hissp.._macro_

;;; The macros will still be available from there even if you clobber
;;; your _macro_ copy. Recall that you can invoke macros using their
;;; fully-qualified names.
Expand Down
Loading

0 comments on commit f33d00f

Please sign in to comment.