ndslice: feature deprecation voting / discussion

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


On Sunday, 2 October 2016 at 17:33:49 UTC, Ilya Yaroshenko wrote:
> On Sunday, 2 October 2016 at 17:11:55 UTC, John Colvin wrote:
>> On Sunday, 2 October 2016 at 15:29:45 UTC, Ilya Yaroshenko 
>> wrote:
>>> On Sunday, 2 October 2016 at 15:26:00 UTC, John Colvin wrote:
>>>> On Sunday, 2 October 2016 at 14:02:31 UTC, Ilya Yaroshenko 
>>>> wrote:
>>>>> [...]
>>>>
>>>> I'm not that fussed about template bloat, but future API 
>>>> flexibility seems important.
>>>
>>> Current API has not flexibility issue related to shape. At 
>>> least i can not find it
>>
>> I was thinking of what you would do if you wanted to add an 
>> extra argument to a variation function. It's much easier if 
>> it's just a normal static array argument.
>
> slice!double([3, 4], 0.0) works now.

I suppose there's always this option: support  varidics for 
simple cases and restrict extra args to the static array 
overloads.

I still think it's better to have one way and stick with it. 
Simpler, less possibility for misunderstanding.


More information about the Digitalmars-d mailing list