On 10/02/2016 10:02 AM, 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.
My general thinking here is that if we improve compiler technology to
avoid template bloat, that would "lift all boats" i.e. make everybody's
life better. So that would be preferable (to the extent possible) to
requiring user-level idioms. -- Andrei