Source code annotations alla Java

Paulo Pinto via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 10 00:02:28 PST 2014


On Thursday, 20 January 2011 at 14:04:54 UTC, Steven 
Schveighoffer wrote:
> On Thu, 20 Jan 2011 08:47:28 -0500, Justin Johansson 
> <jj at nospam.com> wrote:
>
>> Not long ago the Java Language people introduced the idea of 
>> annotations together with an annotation processing tool (apt).
>>
>> Now perhaps the idea of source code annotations is not 
>> actually a Java invention per se, however for someone learning 
>> D is there any equivalent idiom [of Java annotations] in the D 
>> language?
>
> Haven't used Java since they added annotations, but I think 
> they are like C# attributes?
>

Yes, this is one case where Java copied back from C#.

--
Paulo


More information about the Digitalmars-d-learn mailing list