[Issue 13388] accept '@' before 'nothrow', 'pure', 'final', 'abstract' and 'override'

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 29 01:57:10 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13388

--- Comment #11 from bearophile_hugs at eml.cc ---
(In reply to Trey Brisbane from comment #10)

> On only doing things one true way,

Adding to D more ways to do something in an "equally obvious" way is bad.


> Fixing this issue in some
> way or another adds consistency and elegance to the language.

Having contextual keywords or two different ways to spell a keyword is the
opposite of elegance.


> When I show
> people D code, almost invariably people say things along the lines of "Why
> does property require the @-symbol, where as nothrow doesn't?", followed
> immediately by "Eww, well that just looks ugly.".

Fixing this is probably going to cause bigger problems. For me your solutions
are worse than the current problem.


> D should strive to fix things like this,

Keep in mind that this topic was discussed a lot. I don't think the situation
will change now. (I'd like the default to be const, pure, nothrow, and "mut" to
be a keyword :-) But such things will not happen.)

--


More information about the Digitalmars-d-bugs mailing list