Re:White space does matter in C23
by chrismorgan on Friday January 19, 2024 @05:07AM
(#39053680)
Why would you expect that? I would explicitly expect not that. Unicode normalisation (typically to NFC) maybe, but nothing more.
[ Parent
| on HN ]
Re:White space does matter in C23
by lifthrasiir on Friday January 19, 2024 @05:59AM
(#39054040)
Mostly because it's rare to see identifiers with whitespace allowed after all. So this has to fulfill some specific needs.
The main use case here seems like self-describing properties that will be hardly referenced elsewhere. In principle this doesn't really need any new syntax, as you can put the description into the attribute (`[<Property>]` here) and the name itself can remain arbitrary or even be made anonymous. But we've got textual identifiers instead. So I guess that some code does refer to those textual identifiers, and if that's the case, being able to ignore invisible differences when comparing textual identifiers looks like a good idea as well.