Should the "front" range primitive be "const" ?
Seb
seb at wilzba.ch
Mon Mar 19 09:07:06 UTC 2018
On Friday, 2 February 2018 at 14:29:34 UTC, H. S. Teoh wrote:
> On Fri, Feb 02, 2018 at 07:06:56AM +0000, Simen Kjærås via
> Digitalmars-d-learn wrote:
>> [...]
>
> Its semantics are not broken; it's just harder to use. Due to
> const transitivity, it's an all-or-nothing deal. .tailConst
> gives us the middle ground.
>
> [...]
FWIW there's also head const in phobos since more than one year -
known as Final:
https://dlang.org/phobos/std_experimental_typecons.html
More information about the Digitalmars-d-learn
mailing list