News for hackers. Stuff that matters.
Re:Why Zig when there is already C++, D, and Rust? by Leherenn on Saturday January 16, 2021 @02:35AM (#25800777)
They use those "obscure __identifiers__" because they are reserved by the standard and thus a conforming program will not define macros with those values and break everything.
Re:Why Zig when there is already C++, D, and Rust? by vbezhenar on Saturday January 16, 2021 @02:49AM (#25800818)
IMO a better approach would to define some way for compiler to undo all defines before standard header is included and redo those defines afterwards. Or just to stipulate that standard headers must be included before other user code.
Re:Why Zig when there is already C++, D, and Rust? by lldbg on Saturday January 16, 2021 @04:38AM (#25801204)
With modules, "hiding" code like that will be possible in C++.

If only we could skip forward a decade and get mature implementations of it right now...