3 ms·
> The double indirect pointer is hairy but at least everything you need to know to "parse" the code is right there. but why do you want to spend time parsing c
by jcelerier 7y ago
> The double indirect pointer is hairy but at least everything you need to know to "parse" the code is right there.
but why do you want to spend time parsing code that
- does textbook-level things ?
- has a thousand different places where a typo can end up
- needs to be rewritten for every kind of list
those are the red flags. Do you also go read your graphics driver's code when you push pixels to the screen ?
> and also very ugly (i never liked C++'s iterators).
ignoring the jump from what you like to a global assertion (the C version makes my eyes bleed), in C++ 20 you can also just do
list.insert(std::lower_bound(list, val), val);