r/cpp • u/anonymous23874 • Apr 19 '20
Default function arguments are the devil
https://quuxplusone.github.io/blog/2020/04/18/default-function-arguments-are-the-devil/
90
Upvotes
r/cpp • u/anonymous23874 • Apr 19 '20
View all comments
7
u/YouNeedDoughnuts Apr 19 '20
It's syntatic sugar to make definitions more terse in a way that improves readability, IMO. Not technically syntatic sugar since it has some differences with function pointers and inheritance as you pointed out... syntatic Splenda I guess. I'll still eat it, but I did enjoy the article and learn from it.