Yes it comes with its problems. The context sensitivity is annoying and it makes creating good tooling hard. But given macros it doesn't worsen the situation much anyway.
For writing a batch parser/compiler that properly reads all the includes too, the context sensitivity is only a theoretical problem. Adding a type table is easy.
Not having to type "var" all the time is very nice on the other hand.
Re:Zig 0.12.0 Release Notes
by throwawaymaths on Monday April 22, 2024 @10:16PM
(#40127767)
Clarity is always better than saving keystrokes. Code is generally more read than written.
Suppose you had
Before it. The C compiler will happily turn the statement into a multiplication with the result going to /dev/null Can never be parsed with any other meaning depending on how the chips fall after parsing (and possibly analysis, given that macros are a thing) the entirety of the file.