This is not a proposal, this is a question. 

The message could have been “how can I make classes default to sane values without writing to std-proposals about introducing new keywords?”


On May 1, 2022, at 4:15 AM, Abdullah Qasim via Std-Proposals <> wrote:


int menu (/**/requires/**/ unsigned int menu_option = 0)
// Called as:
// OR:
// Compiler Error: function "menu(unsigned int)" requires //unsigned int variable
I do not want calls like menu(), but I do want ability to call menu(default), as, in this case, going to default screen makes perfect sense.


Std-Proposals mailing list