Voting For std.experimental.ndslice

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 17 05:26:09 PST 2015


On Wednesday, 16 December 2015 at 17:49:03 UTC, Ilya Yaroshenko 
wrote:

>> * Miscellaneous
>> ** string mixins. I think some of the string mixins can be 
>> removed for something more readable/debuggable
>> **
>
> I have not found examples where string mixins can be removed. 
> Please refer to particular example. The code for `sliced` and 
> `assumeSorted` looks ugly. But I don't know how is can be done 
> another way. Remove this functionality is an option.

template sliced(Names...)

you can simple compute the strings and than pass them as template 
parameter or as alias to another function.

If that becomes unpractical at least use q{ } strings



More information about the Digitalmars-d mailing list