You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at the compiler, and thought of something. STklos' compiler is already quite compact (which is great!), and maybe it would be possible to rewrite some of the special forms as macros over others? Is there a bootstrap / chicken-and-egg problem with that?
For example, cond expanding as code using ifs, and do, which could be rewritten as letrec...
If you think this is a good idea, I could try doing that.
The text was updated successfully, but these errors were encountered:
Update: I tried moving do and cond from the compiler and including them as macros in runtime-macros.stk, but theis breaksbb.stk and STklos won't compile.
Hi @egallesio !
I was looking at the compiler, and thought of something. STklos' compiler is already quite compact (which is great!), and maybe it would be possible to rewrite some of the special forms as macros over others? Is there a bootstrap / chicken-and-egg problem with that?
For example,
cond
expanding as code usingif
s, anddo
, which could be rewritten as letrec...If you think this is a good idea, I could try doing that.
The text was updated successfully, but these errors were encountered: