All function attributes possible with "@"?

Bauss via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 15 00:48:10 PST 2016


On Thursday, 15 December 2016 at 03:56:56 UTC, Jonathan M Davis 
wrote:
> @ is ugly. # is ugly. Both add unecessary characters. 
> Aesthetically speaking, it would be _way_ better ts have them 
> all be keywords, but we didn't want to have that many keywords.
>
> - Jonathan M Davis

I agree with the @ is ugly and # is ugly, but I believe @safe, 
@nogc and @property should have been keywords.

A personal opinion of mine though is that @safe shouldn't have 
existed and should have been the default for functions, where a 
@unsafe should have existed in its place.

That's a design choice ex. Rust does better than D. It provides 
safety by default, where in D you have to enable safety.


More information about the Digitalmars-d mailing list