What is the state of @property?
frame
frame86 at live.com
Fri Aug 26 08:45:03 UTC 2022
On Thursday, 25 August 2022 at 14:49:51 UTC, Salih Dincer wrote:
> On Thursday, 25 August 2022 at 13:23:25 UTC, bauss wrote:
>> Currently @property doesn't really do anything in this regard,
>> so I imagine that the code would work the same without
>> @property, no?
>
> One benefit of @property is that it allows the compiler to
> infer automatically. So it behaves like auto but superior! For
> example:
>
That has nothing to do with @property, it works with @("") too.
More information about the Digitalmars-d
mailing list