3 ms·
Do you realize that D has betterC and now it also supports C compilation natively? [1] [2] [1] D as a C Replacement (187 comments): https://news.ycombinator.c
by teleforce 1y ago
Do you realize that D has betterC and now it also supports C compilation natively? [1] [2]
[1] D as a C Replacement (187 comments):
https://news.ycombinator.com/item?id=20323114 https://news.ycombinator.com/item?id=20323114
[2] Adding ANSI C11 C compiler to D so it can import and compile C files directly (105 comments):
https://news.ycombinator.com/item?id=27102584 https://news.ycombinator.com/item?id=27102584
- lerno 1y agoYes, I am quite aware. But it doesn’t make D any less a C++ alternative.
- teleforce 1y agoSafe to say that D is both C and C++ alternative, never say never.
- gingerBill 1y agoIf you aim to be both a C alternative and C++ alternative, in reality you are just a C++ alternative because you haven't understood why people prefer C over C++. Therefore D is a C++ alternative and that's what it was always trying to be, even with "BetterC".
- pjmlp 1y agoOnly if they aren't using anything beyond C99, because after that C is basically turning into C++ without Classes.
- gingerBill 1y agoMost C programmers I know pretty much do that. I use C11 just for the atomics and that is it. And I know many C programmers who still use C89/C90 exclusively.
- deleted 1y ago[deleted]
- johnisgood 1y agoWell yeah, I use C99. I would never use newer C, it is too C++-esque. You can actually use some stuff from stdatomic.h with -std=c99 -D_XOPEN_SOURCE=700, such as "atomic_bool" and whatnot.