Hacker News new | past | comments | ask | show | jobs | submit login
How to Stay Sane with Modern C++ (bfilipek.com)
3 points by Alupis on Dec 24, 2020 | hide | past | favorite | 1 comment



Use Go (golang) instead, if you can

Go is like a modern C: simple and effective

Go fixes C's well-understood flaws (declaration resembling use, unintuitive operator precedence, unrestricted address math, silent casting, zero-terminated strings, etc.)

Go puts essential C idioms directly into the language (pointer/length is formalized as slices, packages are part of the language instead of just being naming convention, etc.)

The longer you use C++, the more you despise it. But C has always remained a pleasure, and Go is a continuation/modernization/enhancement of that

Happy holidays




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: