2 ms·
> If C had better builtin constructs... Such annotations exist in specific compilers (e.g. clang has things like _Nullable and _Nonnull), they are just not par
by flohofwoe 5y ago
> If C had better builtin constructs...
Such annotations exist in specific compilers (e.g. clang has things like _Nullable and _Nonnull), they are just not part of the standard (unfortunately). But those annotations are visible in Clang's ast-dump, so they can be used to create more correct language bindings.
- sirwhinesalot 5y agoYes, I'd love it if they got standardized. Having them implemented in a C compiler already helps quite a bit for more "standardized" adoption over some ad-hoc approach. I certainly don't want C to be getting exceptions or templates or other heavyweight constructs, just some QOL stuff that allows for more semantic information to be shared.