UDAs - Restrict to User Defined Types?
    Jacob Carlborg 
    doob at me.com
       
    Thu Nov  8 09:20:38 PST 2012
    
    
  
On 2012-11-08 17:53, simendsjo wrote:
> I guess it depends. I find it easier to see that it's an attribute,
> especially when you annotate it. But it's harder to grep for.
>
> Is foo an attribute or not?
>    @serializable
>    @xmlRoot
>    @attribute
>    @displayName("foo")
>    struct foo {}
>
> Is foo an attribute or not?
>    @serializable
>    @xmlRoot
>    @displayName("foo")
>    struct @foo {}
>
I don't know really. In that bottom example, the struct declartion 
almost disappears among all the attributes.
-- 
/Jacob Carlborg
    
    
More information about the Digitalmars-d
mailing list