Re: Advanced features
"Juha Nieminen" <nospam@thanks.invalid>
Krice wrote:
Maybe I expressed myself badly. I was talking about using
advanced features for simple tasks. Like using templates
everywhere. What's wrong with simple types and design?
You contrasted std::map with std::vector and std::list in your
original post. You didn't mention "templates vs. non-templates".
Who uses "templates everywhere" in simple programs?
Whoever uses std::string, std::vector and the rest of STL. And most other
libs use templates too.
Besides, even if someone did, what's wrong with that? Templates don't
have to make the program more complicated.
Yeah, what would make using templates 'more complicated' than say
inheritance and virtual functions? Or exceptions? Or the other features in
the language?
Simple types (whatever that means) are okay, but has little interaction wit
'simple design', and if you want to solve a real problem restricting toolset
to whatever predetermined subset will hardly be simple.
Was design and implementation of anything simpler in C, that have only those
'simple' types? No, it is not, by far.