std.experimental.collection.functional.slist
Jonathan M Davis via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 19 06:49:14 PDT 2015
On Friday, 19 June 2015 at 13:36:22 UTC, Andrei Alexandrescu
wrote:
>> 3. Shouldn't `front` functions be const?
>
> Good point. Made const.
That's not necessarily a good idea. What if the element type
can't even be used when it's const? inout might work in that
case, but in general, you have to be _very_ careful with slapping
const on generic code.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list