3 ms·
There's a library for that: https://github.com/ct-austin/ifmt https://github.com/ct-austin/ifmt In general, a lot of things that are language features in highe
by nicoburns 7y ago
There's a library for that: https://github.com/ct-austin/ifmt https://github.com/ct-austin/ifmt
In general, a lot of things that are language features in higher-level languages, can and are implemented as libraries in Rust. It's possible that this will make it into the standard library at some point.
- xixixao 7y agoThe reason to include it in the core language, besides potentially not requiring the additional syntax of a macro call, is what another commenter pointed out: You want editor support (click to definition, syntax highlighting, typing).
- nicoburns 7y agoIntelliJ provides syntax highlighting for common Rust macros.