Re:Zig, the Small Language
by politician on Wednesday September 07, 2022 @01:25PM
(#32753468)
Have you considered adding a dedicated `breakpoint` keyword for this use case? Linters could ignore it, but the compiler could warn or error. The problem with workarounds like `assert(0)` is that the linter lacks context to do the right thing.
[ Parent
| on HN ]
Re:Zig, the Small Language
by WalterBright on Wednesday September 07, 2022 @01:50PM
(#32753781)
Adding another feature is always tempting, and there are daily new feature requests for D.
We simply have to have a very high bar for new features.
It's a good principle to pursue. But additional language features for production codebases vs toolchain features that happen to lean on changes to the language as a matter of UI are worth considering separately.