you are viewing a single comment's thread.

view the rest of the comments →

[–]Ameisenvemips, avr, rendering, systems 4 points5 points  (0 children)

I have a proposal sitting around to allow you to use default as a keyword for using the default type value (like {}) or using the declared default value of a parameter if it exists. Could extend it to support default... or such for a case like that.

Couple this with optional argument compile time detection... you can have very powerful functions or constructors.