News for hackers. Stuff that matters.
Re:I stopped everything and started writing C again by desdenova on Wednesday March 12, 2025 @09:07PM (#43349400)
You still need to think about error handling, and it's not standardized because everyone else will also have to think about it ad hoc.

You'll also still need to think about when to copy and move ownership, only without a type system to help you tell which is which, and good luck ensuring resources are disposed correctly (and only once) when you can't even represent scoped objects. `goto` is still the best way to deal with destructors, and it still takes a lot of boilerplate.

Re:I stopped everything and started writing C again by codr7 on Wednesday March 12, 2025 @09:22PM (#43349472)
But you have a choice, you don't have to implement all of C++/Rust.

The beauty of C is that it allows you to pick your level of complexity.

Re:I stopped everything and started writing C again by int_19h on Thursday March 13, 2025 @12:05PM (#43354653)
You don't have to use the entirety of C++, either.
Re:I stopped everything and started writing C again by codr7 on Thursday March 13, 2025 @06:54PM (#43358006)
No, but that tends to gradually happen all by itself from my experience, even in solo projects. Because it feels stupid writing something yourself when you have access to stdlib. Also, I feel rolling your own stuff in C++ is a major pita in comparison to C, too many rules to memorize for me.