[ ArgumentList ] vs. @( ArgumentList )

Jonathan M Davis jmdavisProg at gmx.com
Tue Nov 6 16:49:13 PST 2012


On Wednesday, November 07, 2012 00:58:47 Andrej Mitrovic wrote:
> Actually, let me give you a better argument.
> 
> Let's say you implement your own @(NoGC) attribute that you use in
> your own library. You use it like so:
> 
> @(NoGC) class Foo { }
> 
> And somewhere down the road 5 months from now druntime introduces it's
> own @NoGC attribute. Personally I would rather have a compile-time
> error due to clashing symbol names right then and there. Otherwise I
> could easily end up in a situation where I **forget** to parenthesize
> my custom NoGC attribute and end up using the druntime one:

That seems like a pretty good argument.

- Jonathan M Davis


More information about the Digitalmars-d mailing list