Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function
Joseph Rushton Wakeling via Digitalmars-d
digitalmars-d at puremagic.com
Fri Oct 10 16:13:51 PDT 2014
On 11/10/14 00:58, ketmar via Digitalmars-d wrote:
> i can't see why we should keep the syntax that nobody likes. this will
> just confuse newcomers. that was the argument against adding "@" to
> "nothrow" and "pure" (and keeping the old syntax simultaneously). if it
> works there, it should work here too.
I don't mind deprecating the syntax that nobody likes. I mind the idea of
removing it, because has the potential to break old code for no particularly
good reason.
BTW I repeat, as far as I can tell, Ddoc will always place the attributes on the
left of the function. That needs to be fixed if the proposed patch is to go
through.
More information about the Digitalmars-d
mailing list