Hacker News new | ask | show | jobs
by steveklabnik 3201 days ago
It would be impossible to remove the `lisp!` on every form, as you have to actually invoke the macro.

You could make a build script that would read in lisp files, and then run them through a pre-processor of sorts before compiling. That's the closest thing, and it'd still require setting up that build.rs.

1 comments

> You could make a build script that would read in lisp files, and then run them through a pre-processor of sorts before compiling.

At that point, you would be better off using a Lisp implementation and its expander over a bunch of Lisp to Rust macros.

Sure. I don't suggest that this is a good idea, just that it'd be possible this way.