Sujet : Re: Which code style do you prefer the most?
De : rakinar2 (at) *nospam* onesoftnet.eu.org (Ar Rakin)
Groupes : comp.lang.cDate : 28. Feb 2025, 17:12:40
Autres entêtes
Organisation : OSN Developers
Message-ID : <87eczigi9z.fsf@onesoftnet.eu.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Gnus/5.13 (Gnus v5.13)
On 27 Feb 2025 23:24, Lawrence D'Oliveiro <
ldo@nz.invalid> wrote:
On Thu, 27 Feb 2025 17:27:17 +0000, bart wrote:
>
Problems involving \ and // commonly come up with multi-line macros.
>
C macros are yet another example of the wrong way to do macros.
>
The only right way to do macros is at the AST level.
>
Think how many problems would be solved if you could do gensym in a C
macro.
Would you say that the Rust compiler's implementation is *close* to what
you expect?
The Rust compiler processes macros during tokenization, so it is not
exactly what you specified. I am just curious.
-- Ar Rakin