Stream: t-compiler/rust-analyzer

Topic: SyntaxKind vs T! macro


Lukas Wirth (Jan 10 2021 at 15:36, on Zulip):

is there a preference regarding using, for example SyntaxKind::TRUE_KW vs T![true]? At least for keywords I think preferring the latter is better. This seems like something that should be listed in the style guide if it matters.

matklad (Jan 10 2021 at 15:37, on Zulip):

T! is always better

Laurențiu (Jan 10 2021 at 15:47, on Zulip):

Oops, filed https://github.com/rust-analyzer/rust-analyzer/pull/7237

Last update: Jul 28 2021 at 02:45UTC