Pretty please: Named arguments
Andrej Mitrovic
andrej.mitrovich at gmail.com
Tue Mar 1 11:07:06 PST 2011
On 3/1/11, Bekenn <leaveme at alone.com> wrote:
>
> When reading existing code, can you easily spot the difference between:
> foo(1,,, "Hello World!");
> and
> foo(1,,,, "Hello World!");
> ?
>
> Unlike named arguments, I'd argue this syntax makes things quite a bit
> /less/ readable.
>
This syntax is used by Autohotkey, an automation scripting language.
It's not that bad for scripting (when you have an api reference on the
side). But when you're reading code you have to keep count of those
commas, and that's when things get ugly.
More information about the Digitalmars-d
mailing list