3 ms·
Now that rust-analyzer has "expand macro recursively", you actually can see what a macro expands into fairly easily, so I don't think the unreadability of macro
by bobbylarrybobby 5y ago
Now that rust-analyzer has "expand macro recursively", you actually can see what a macro expands into fairly easily, so I don't think the unreadability of macros is much of a concern anymore these days. A bigger problem is the error messages you get when you write invalid code inside one.
- eklavya 5y agoSince the blog author is the primary developer of rust-analyzer, he must know about it. I think he might still have usability concerns about macros in rust IDEs. I have been relying on cargo expand for macro debugging, let me check what utilities rust-analyzer has for this use case. Thanks for sharing. EDIT: wow, it works exactly as you advertised, thanks a bunch again for sharing, such a nice productivity boost!