Revised RFC on range design for D2
Christopher Wright
dhasenan at gmail.com
Thu Oct 2 19:37:02 PDT 2008
Bill Baxter wrote:
> On Fri, Oct 3, 2008 at 9:37 AM, Bill Baxter <wbaxter at gmail.com> wrote:
>> ... except these extras do have the same issue that plain property
>> assignment does. They would open up a new class of things that are
>> valid code but don't behave as expected. writefln += 5.
>>
>
> Doh, obviously writefln is a bad example there. Imagine a function
> that takes an int, tries to do something that many times, then returns
> an int indicating how many times it actually managed to do it.
>
> --bb
How about this? Start trusting programmers not to do nonsensical things.
With the possible exception of downs, whose code is delightfully opaque
while being wonderfully readable.
More information about the Digitalmars-d-announce
mailing list