2 ms·
At that point, why not write in C? Do they think it's C/C++ and not understand the difference? > no recursion Does this actually mean no recursion or does it
by msla 1y ago
At that point, why not write in C? Do they think it's C/C++ and not understand the difference?
> no recursion
Does this actually mean no recursion or does it just mean to limit stack use? Because processing a tree, for example, is recursive even if you use an array, for example, instead of the stack to keep track of your progress. The real trick is limiting memory consumption, which requires limiting input size.
- mwkaufma 1y agoFor a long time, at least in MS and Intel, the C++ compilers were better than the C compilers.
- mwkaufma 1y agoRe: recursion. She explains in her video. Per requirements, the stack capacity has to be statically verifiable, and not dependent on runtime input.
- drnick1 1y agoYou may still want to use classes (where they make sense), references (cleaner syntax than pointers), operator overloading, etc. For example, a linear algebra library is far nicer to write and use in C++.
- jesse__ 1y agoFunction overloading is nice, too
- billforsternz 1y agoSemi serious idea: A lot of people (including me) write C++ but it's basically C plus a small set of really ergonomic and useful C++ features (eg references). This should be standardised as a new language called C+
- zeroc8 1y agoThat probably would see more success than the monster they've created. I've been out of the C++ world for a while, but I hardly recognize the language anymore.