typed macros?

31 views
Skip to first unread message

Raoul Duke

unread,
Aug 21, 2026, 3:22:48 AMAug 21
to qilang
can macros be type checked perhaps?

nha...@gmail.com

unread,
Aug 21, 2026, 4:57:56 AMAug 21
to Shen
Yeah, just code the macro transform in a normal function and call that from a def macro wrapper. You’ll have to define the type theory for your output terms and possibly some verified types for identifying and validating input.
Reply all
Reply to author
Forward
0 new messages