ndslice: feature deprecation voting / discussion

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 2 08:26:00 PDT 2016


On Sunday, 2 October 2016 at 14:02:31 UTC, Ilya Yaroshenko wrote:
> Timothee Cour proposed to deprecate arguments without [ ... ] 
> that represent shape .
>
>   auto a0=iota(3*4).sliced(3,4); // proposal:deprecate
>   auto a1=iota(3*4).sliced([3,4]);
>   auto a2=iotaSlice(3,4); // proposal:deprecate
>   auto a3=iotaSlice([3,4]);
>   auto a6=slice!int(3,4);// proposal:deprecate
>   auto a4=slice!int([3,4]);
>
>   ... the same for blocks, windows, ... etc.
>
> Mir Issue: https://github.com/libmir/mir/issues/337
>
> Current Yes: Timothee Cour, John Colvin
> Current No : Ilya Yaroshenko, Relja Ljubobratovic
>
> If you want to see the code please use Phobos code (not Mir). 
> Template bloat was significantly reduced in 
> https://github.com/dlang/phobos/pull/4823.
>
> Ilya

I'm not that fussed about template bloat, but future API 
flexibility seems important.


More information about the Digitalmars-d mailing list