February 06, 2004
Sean Kelly wrote:
>> <method>(,,,<arg>,,,)

> Now that's readable ;)  If D were to support arbitrary default arguments I'd much prefer some sort of signifier:
> 
> <method>( default, default, <arg>, default, default )

I once proposed exactly the same, with a --- token for a placeholder. Easy to read and to type.

myFunction( ---, ---, 10, ---, ---);

This stayed unheared. I think it doesn't make sense now, since this kind of addition can be made to 2.x D release, and the current semantics is out of question to be tampered with anyway.

-eye

1 2
Next ›   Last »