4 ms·
I hate this idea. It just clutters the UI too much and adds noise especially if it's a UI you're familiar with. The C/C++ language is noisy enough without all
by aleaonard54 12y ago
I hate this idea. It just clutters the UI too much and adds noise especially if it's a UI you're familiar with. The C/C++ language is noisy enough without all this. Modern IDEs alleviate the need to be reminded inline what the values are for. On top of the fact, just about every IDE invented in the last 10 years offers code completion making this useless IMHO.
- SapphireSun 12y agoWhat about reading? I can't always figure out what foo(0, xyz, null) means at first glance.
- yarrel 12y agoI can never remember the precise names of parameters. ;-)
- MereInterest 12y agoOn 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? :)
- frozenport 12y agoNope. Imagine that you change a function prototype: void drawBox(int X,int Y,int W,int H); void drawBox(int TL,int TR,int BL,int BR); Having an extra safety for mature code offers an immediate protection, in a much more accessible fashion then competing ideas like 'concepts'.