On Thursday, 5 February 2015 at 01:34:49 UTC, deadalnix wrote:
On Thursday, 5 February 2015 at 01:07:56 UTC, Andrei
Alexandrescu wrote:
Would introduce an exception to our brace-on-its-line rule.
Will I start the next world war if I mention this rule is only
useful to eat vertical space on my screen (especially when
using contracts) ?
If contracts would support single statements:
auto opSlice(size_t low, size_t high)
in assert(low <= high);
in assert(0 == 0);
out(r) assert(r.length == high - low);
out(r) assert(!r.empty);
{
import std.range : take;
return this[low .. $].take(high - low);
}