New in C#4
Denis Koroskin
2korden at gmail.com
Wed Oct 29 13:33:15 PDT 2008
On Wed, 29 Oct 2008 23:28:25 +0300, bearophile <bearophileHUGS at lycos.com>
wrote:
> Denis Koroskin:
>
>> graphicsDevice->updateSettings(fullScreen: true, verticalSync: true,
>> enableBloom: false, fullScreenAA: true);
>
> Seeing this, now I think the syntax with equals is a little shorter, so
> maybe I prefer the equals:
>
> graphicsDevice->updateSettings(fullScreen=true, verticalSync=true,
> enableBloom=false, fullScreenAA=true);
>
>
>> compiler could reorder parameters for me automatically if given
>> that all of them are specified and no params ommited (unlike Python).
>
> Maybe I don't understand what you are saying, but Python too reorders
> arguments.
"unlike Python" is related to omitting parameters. Python allows that but
it doesn't really fit statically typed langugages, I believe.
>
> Bye,
> bearophile
More information about the Digitalmars-d
mailing list