3 ms·
On the contrary, I would say that it cleans things up amazingly. As the language currently is, if I want to change one of the default values, I need to specify
by MereInterest 12y ago
On the contrary, I would say that it cleans things up amazingly. As the language currently is, if I want to change one of the default values, I need to specify every single value up to that point.
func(5,0,0,NULL,0,true,true,false,NULL,true);
func(verbose: true);
With named parameters, I can just specify the differences between my function call and the default values.
- BinaryIdiot 12y agoThis! I love the idea simply because of this use case.
- blt 12y ago> func(5, 0, 0, NULL, 0, true, true, false, NULL, true); a Windows programmer by any chance? :)