Another idiom I wish were gone from phobos/druntime

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 6 07:43:42 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? ;)

p.s. and people will avoid using features that involves heavily copy-
pasting, and has no error protection (imagine overloaded functions). so 
in this form it will be the feature that people will mark as "existent", 
but will not use, 'cause it's not comfortable enough.
-------------- 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/fd3df632/attachment.sig>


More information about the Digitalmars-d mailing list