Re:I disagree with Linus Torvalds about C++ (2009)
by CoolGuySteve on Monday December 24, 2018 @09:02AM
(#18752167)
Just because it has a name doesn’t make it a good idea necessarily. What one calls “initialization” someone else might call a “side effect”.
In particular, sometimes you don’t want a bunch of allocations and locks firing on every function call and exit. C makes this behaviour explicit and C++ makes it implicit.
In particular, sometimes you don’t want a bunch of allocations and locks firing on every function call and exit. C makes this behaviour explicit and C++ makes it implicit.