EDIT: Sorry for reviving an old thread. I just saw it in the related threads and thought to reference the other post before seeing the dates
Related. I raised an idea proposing inline and procedural macros inspired by Rust's macro system.
Defining macros would be done such that they can be evaluated at runtime or compiled statically by compilers (like swc) and using an adapted ES-idiomatic syntax based on the existing Rust macro definition syntax.