Re:Odin, a Pragmatic C Alternative with a Go Flavour
by lerno on Friday May 09, 2025 @09:53PM
(#43942638)
Yes, I am quite aware. But it doesn’t make D any less a C++ alternative.
[ Parent
| on HN ]
Re:Odin, a Pragmatic C Alternative with a Go Flavour
by teleforce on Friday May 09, 2025 @10:03PM
(#43942671)
Safe to say that D is both C and C++ alternative, never say never.
Re:Odin, a Pragmatic C Alternative with a Go Flavour
by gingerBill on Saturday May 10, 2025 @05:16AM
(#43944294)
If 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".
Re:Odin, a Pragmatic C Alternative with a Go Flavour
by pjmlp on Saturday May 10, 2025 @05:27AM
(#43944337)
Only if they aren't using anything beyond C99, because after that C is basically turning into C++ without Classes.
Re:Odin, a Pragmatic C Alternative with a Go Flavour
by gingerBill on Saturday May 10, 2025 @05:56AM
(#43944440)
Most 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.
Re:Odin, a Pragmatic C Alternative with a Go Flavour
by johnisgood on Friday May 16, 2025 @06:14PM
(#44010235)
Well 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.