What is the stance on partial initializers when declaring

kenji hara k.hara.pg at gmail.com
Fri Jul 22 06:37:03 PDT 2011


2011/7/22 Jacob Carlborg <doob at me.com>:
> Cool. But it's quite inconsistent that assignment requires "seq" and
> declaration doesn't.

Yes it is inconsistent, but I think it is not big problem.
Because assignment for reusing variables is not good way.
It is not 'functional', need 'side-effect', so

> (x, y) = seq!(1, 2);
>
> Would it be possible to allow the above syntax?

it seems to me that supporting above syntax is not worth changing grammar cost.

Kenji Hara


More information about the Digitalmars-d mailing list