-preview=in (was: Re: const or immutable?)
Temtaime
temtaime at gmail.com
Thu Sep 23 09:41:33 UTC 2021
On Thursday, 23 September 2021 at 03:31:01 UTC, Ali Çehreli wrote:
> On 9/22/21 6:29 PM, Mathias LANG wrote:
>
>> alias cstring = const(char)[];
>
> I've been thinking about that myself. Good to see it being used.
>
>> - Enable `-preview=in` (with DMD >= v2.095) and pass
>> parameters by `in`
>
> 2.094 perhaps?
>
> https://dlang.org/changelog/2.094.0.html#preview-in
>
> Yeah, this meaning of 'in' makes a lot of sense to me. In fact,
> Adam mentioned 'in' as well. I can make it "standard" by
> recommending it in the book. >:)
>
> Ali
>
> P.S. I will respond to most other comments after digesting them
> a bit. :)
Surely, i'm using 'in' anywhere i need const. I'm avoiding using
explicit const/immutable.
More information about the Digitalmars-d
mailing list