D1.5 anyone?
Dmitry Olshansky
dmitry.olsh at gmail.com
Tue Apr 11 17:50:52 UTC 2023
On Tuesday, 11 April 2023 at 17:30:34 UTC, Hipreme wrote:
> On Tuesday, 11 April 2023 at 12:21:01 UTC, Dmitry Olshansky
> wrote:
>> [...]
>
> My solution to D const was pretty simple: Never use it :D
That’s what I do in my projects except for strings. In standard
library however I had to reset to all sorts ugly hack to make
immutable regex work.
> It makes things painfully to work with most of the time and I'm
> yet to see any real advantage over using it.
> My main language after D is typescript and well, for something
> become const is really hard in it, so I find it pretty nice to
> doesn't use. Specially in the game development thing where
> mutability exists.
Agreed.
>
>
> `pure` breaks logging in your function for debugging,
Oh the joy of pure functions.
—
Dmitry Olshansky
More information about the Digitalmars-d
mailing list