3 ms·
I completely agree and would, most of the time, choose C over C++! Except, that I have seen C++11 codebases that heavily relied on lambdas. And that was far fr
by EllipticCurve 10y ago
I completely agree and would, most of the time, choose C over C++!
Except, that I have seen C++11 codebases that heavily relied on lambdas. And that was far from sane. I am very familiar with lambdas from pure functional languages and partially ones (python, ...). But all the syntax specifics, brackets, ... in C++ made it a very annoying process to understand, what was even going on at all.
Using short functions would be more lines of code. But at least I would have known right away what's happening in the code.