May 28, 2015
On Thursday, 28 May 2015 at 13:52:03 UTC, Vladimir Panteleev wrote:
> On Thursday, 28 May 2015 at 13:46:52 UTC, Meta wrote:
>> What about defining a static `nil` value for S?
>
> Might as well just use S.init. Again, doesn't help with creating a drop-in replacement.

Yeah, it's more or less the same as init, except you have control over it and the struct doesn't default to it. We really do need some kind of implicit conversion facility when passing to and returning from functions, though.
1 2
Next ›   Last »