4 ms·
These are downsides of macros in general, but I don't see how they are relevant to a built-in macro from stdlib.
by methyl 6y ago
These are downsides of macros in general, but I don't see how they are relevant to a built-in macro from stdlib.
- lmm 6y agoThey apply just the same in the standard lib surely? I suppose tooling might be expected to have support for the standard lib, but you're creating a lot more work for tool implementors if there is a large (and presumably evolving) set of "standard" macros. The concern about the reader is definitely still there unless you're expecting every Rust user to memorize which macros are in the standard library.