if you are a programmer working on a c project what are the biggest reasons you write c instead of c++ (or any other language)
Conversation
Notices
-
Embed this notice
Jessica Paquette (barrelshifter@mastodon.social)'s status on Wednesday, 19-Feb-2025 00:23:21 JST Jessica Paquette
-
Embed this notice
Janneke (janneke@todon.nl)'s status on Wednesday, 19-Feb-2025 00:23:21 JST Janneke
@barrelshifter (simple) C is #bootstrappable, C++ is not.
-
Embed this notice
Marcus Müller (funkylab@mastodon.social)'s status on Wednesday, 19-Feb-2025 00:42:34 JST Marcus Müller
@janneke @barrelshifter not sure that's a fair distinction; on unhosted platforms ("bare-metal"), you still need (non-C) startup code to set up at least something like stack address(es), static storage before you can jump to a C function?
-
Embed this notice
Janneke (janneke@todon.nl)'s status on Wednesday, 19-Feb-2025 00:42:34 JST Janneke
@funkylab @barrelshifter sure, but we have things like stage0's M2-Planet that are bootstrappable and can compile my GNU Mes project written in simple C.
C++ simply wouldn't be an option.
-
Embed this notice