3 ms·
> Everything you do in Zig can be done almost in the same way in C or C++. Can you do this in C? https://github.com/ityonemo/clr https://github.com/ityonemo/c
by dnautics 4mo ago
> Everything you do in Zig can be done almost in the same way in C or C++.
Can you do this in C?
https://github.com/ityonemo/clr https://github.com/ityonemo/clr
- stephc_int13 4mo agoLinters are not exactly a new idea, and they can be pushed quite far. I am generally against the idea of language support for meta-programming, even using C macros or C++ templates. I do a lot of meta-programming/codegen with external tooling.
- dnautics 4mo ago> Linters are not exactly a new idea, and they can be pushed quite far. That's not an answer. There's a reason why you can't do it in C, and the reason is "the stdlib is poorly designed". No amount of linting can get you around that.
- stephc_int13 4mo agoI agree about the C stdlib being outdated and the worst part of C. This is why I don't use it. A new modern C standard library would be a very good thing. But I am ok writing my own, tailored for my own needs and style.