4 ms·
Rust’s macro system gives you this already. Is there something you see it not providing that the language you’re imagining would?
by bluejekyll 7y ago
Rust’s macro system gives you this already. Is there something you see it not providing that the language you’re imagining would?
- zaarn 7y agoRust's current macro's aren't as powerful as I would like them, and procedural macros are far more difficult and extremely hard to properly develop and debug. The substitution macros aren't that much fun either since they lack certain capabilities (like introducing a new variable into the current scope without having to specify the name redundantly). Without a lot of external libraries, procedural macros are almost impossible to write in my experience. Neither of them allows one to properly code onto the type system or replace it and neither is properly supported by the IDEs (or RLS).
- cztomsik 7y agorust proc macros are limited because they need to be in a separate crate and syn is also not that much easier to work with, it's too level IMHO
- mrkeen 7y agoI'd like to be able to hide Future, Vec, Result, etc. behind a trait.