[openbeos] Re: BString

>>Yeah - I think that the STL seems a little ... over engineered for me.
>>Templates are an interesting idea. But they are a pain to use, make 
>the compiler's 
>>error strings *completely* impossible to read, and I don't even want 
>to think
>>about the efficiency of the code. Plus, since they try (out of the 
>goodness of
>>their hearts) to hide the algorithm, unless you find documentation 
>about
>>the costs of a particular operation, you have to guess.
>
>Actually, Templates are very efficient - that's (more or less) the 
>whole idea behind it. The code is compiled for every type you use it 
>for.
>
>Adios...
>   Axel.

This is true. I was thinking efficiency in terms of how well the STL is built,
not the efficiency of templates. Compiler efficiency (i.e. how hard the compiler
has to work to build the thing) is another question to answer. :-)





Other related posts: