r/cpp • • 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

149 comments sorted by

View all comments

Show parent comment

1

u/Ameisen vemips, avr, rendering, systems Apr 19 '20

An issue is that C++ still lacks a lot of language features that languages like C# or Ruby have that make many of the features less foot-gunny.

Default/optional arguments need a way to specify a default argument is wanted by the user, and/or named arguments.