News for hackers. Stuff that matters.
Re:Ask HN: C++ devs who went C only by pubby on Sunday April 14, 2024 @07:11PM (#40035339)
I mean it depends on the project and scope, but if you just write C-style code but use unique_ptr, vector, string, and <algorithm>, you're already at an advantage.
Re:Ask HN: C++ devs who went C only by hnthrowaway0328 on Tuesday April 16, 2024 @03:54PM (#40056428)
Yeah and auto. Unique pointers really make one think about ownership.
Re:Ask HN: C++ devs who went C only by roeles on Wednesday April 17, 2024 @10:51AM (#40065497)
I would recommend replacing macros with constexpr to allow type checking.