[Issue 13397] allow postfix function attributes like 'safe', 'system' and so on without '@'

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


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

--- Comment #7 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
(In reply to bearophile_hugs from comment #6)
> Because it introduces complexity and the return of investment is minimal.

i don't think that making language slightly more human-friendly is of no value.
i don't like modern trend of making compiler to dictate user what to do when
compiler is perfectly able to cope with that issues itself.

why should i remember when i must put that '@' before attribute? there is no
ambiguity introduced by this patch, yet the patch allows me to forget what
function attributes are so special that they don't need '@' once and forever.

yes, this can introduce some complexity to syntax highlighters, but i don't
care: i believe that computer should make my life easier, not vice versa. if
this means more work for computerā€¦ ok, that's why we made computers, right?

we can't fix C/C++, but if D can be made human-friendlier with a trivial and
non-breaking changeā€¦ why not?


> (In my opinion it's better to focus on problems of D/Phobos that fix
> functionality holes, or add commonly useful functionality, or fix
> significant bugs. There is not lack of all of them in Bugzilla.)

playing with parser is easy, and other tasks requires a lot deeper code
understaning. i'm doing what i can now. ;-)

--


More information about the Digitalmars-d-bugs mailing list