DIP 1002 (TryElseExpression) added to the queue
ikod via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 28 23:46:15 PDT 2016
On Wednesday, 28 September 2016 at 20:18:06 UTC, pineapple wrote:
> On Wednesday, 28 September 2016 at 17:56:13 UTC, Steven
> Schveighoffer wrote:
>> The more I think about this submission, I feel like the
>> benefits are quite slim.
>
> This is not and was not intended to be a glorious, incredible
> addition to the language. It is meant to shove D a couple
> inches further in the direction of modern programming
> constructs. Everywhere a programmer can use `else` instead of
> mucking about with a boolean success flag and having to make
> absolutely sure the code intended to handle a success state
> doesn't and will never be modified to throw an exception that
> the error handling code isn't designed for means less time
> spent on tedium, and less opportunity for programmer error.
Agree, programming should be fun, not struggle.
More information about the Digitalmars-d
mailing list