4 ms·
What would be the advantage of doing that?
by greyman 16y ago
What would be the advantage of doing that?
- bediger 16y agoNo exceptions to deal with: http://ptgmedia.pearsoncmg.com/images/020163371x/supplements/Exception_Handling_Article.html http://ptgmedia.pearsoncmg.com/images/020163371x/supplements... That's probably a really big one in terms of reliability. Also, the weird C++ behavior of calling copy constructors in the most unexpected places can have a very detrimental effect on performance. Personally, I think the nature of C++ class definition leads people down the primrose path of trying to provide all potentially useful methods, of which only a tiny fraction get used. Tons of dead code appears in most C++ projects.
- dfox 16y agoFaster compilation, more flexibility, less dependencies in code base (you don't have to define struct fields in headers), no problems with incompatible ABI, interface that can be directly called from almost any other programing language...