Sujet : Re: Command line globber/tokenizer library for C?
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 12. Sep 2024, 17:26:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbv4nv$b6ur$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
Am 12.09.2024 um 18:15 schrieb Bart:
I'm counting the number of characters needed to express the function. Since one of BM's claims is that the C++ example was smaller than C.
That was a general statement about C++ and not on my code. I'm using
abstractions like iterators for the benefit of bounds-checking while
debugging but the code is similar.
But usually you write in C++ a fifth or less code. Look what s simple
vector<T>::emplace_back() saves work over manually relocating a complex
vector-like data structure in C. Or consider how convenient a map or
unordered_map is over f.e. sth. like with libavl.
This stupid character-counting from a simple example shows that Bart
has no professional C++ experience.
The difference between the two columns is whether indentation uses hard tabs or spaces. The C version is more deeply indentated so that makes a difference. (Also the width of the tabs, but everything was measured with tabs set to 4 characters.)
That's as ridiculous as Barts's discussion.