Re:White space does matter in C23
by layer8 on Thursday January 18, 2024 @05:54PM
(#39049089)
C++ has some contextual keywords as well:
[ Parent
| on HN ]
But did they make those contextual in order to avoid conflicts with code that had existing identifiers before the new keyword was specified?
Yes.
Re:White space does matter in C23
by tsimionescu on Friday January 19, 2024 @01:36AM
(#39052237)
C# is probably the king of contextual keywords, they have tens of them. They started I believe with `yield return` and `yield break` and then added all of the LINQ ones (select, from, where etc), and kept adding others (notnull, record, required, etc).