ability to do conditional compilation on zig version including when builtin functions change #21957
Labels
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Currently, if a builtin function is added to the language, it is not possible to conditionally use it depending on the Zig version number:
Without this proposal, this code would cause older versions of the compiler to produce a compile error if a call to
@theNewBuiltin
was found anywhere in the file.Not all such language changes can be accounted for by checking the version number, however, many of them can, and I think adding builtins should be one of them.
However, the downside here is that bad builtin calls in dead code would no longer be reportable.
The text was updated successfully, but these errors were encountered: