Another idiom I wish were gone from phobos/druntime
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Fri Feb 6 07:41:32 PST 2015
On Fri, 06 Feb 2015 15:08:55 +0000, Chris wrote:
> On Friday, 6 February 2015 at 14:29:16 UTC, ketmar wrote:
>> On Fri, 06 Feb 2015 14:04:39 +0000, Chris wrote:
>>
>>> auto opSlice(size_t low, size_t high)
>> ...
>>>
>>> contract {
>>> opSlice(size_t low, size_t high) {
>>
>> dead before the start.
>
> Why? Would you mind to elaborate on that a little? ;)
double declaration is both error-prone and not in D "spirit" ('cause it's
error-prone ;-). it also adds alot of noise (imagine template declaration
with complex constraints).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150206/72bf8814/attachment.sig>
More information about the Digitalmars-d
mailing list