D1.5 anyone?
Dmitry Olshansky
dmitry.olsh at gmail.com
Tue Apr 11 17:40:19 UTC 2023
On Tuesday, 11 April 2023 at 16:47:05 UTC, Timon Gehr wrote:
> On 4/11/23 18:43, Timon Gehr wrote:
>>
>> - Immutability by interface is already the best way to do
>> immutability in a single-threaded environment, for
>> multithreading probably an `immutable` storage class can be
>> helpful.
>
> I guess initialization of such data structures will be a bit
> annoying as `immutable` as a non-transitive storage class kills
> pure factory functions.
That much is true. What I have in mind is to reconcile pure
functions and CTFE-ability. It would seem that any pure function
could CTFE-ed.
More information about the Digitalmars-d
mailing list