Why D Needs Attributes (Was: Command-line arguments)

Yigal Chripun yigal100 at gmail.com
Mon Jul 7 15:16:08 PDT 2008


Nick Sabalausky wrote:
<snip>talk about attributes</snip>

IMO and I'm not an expert on this - attributes by themselves are pretty
much worthless. however, if you combine them with additional tools they
become a very powerful feature.
If you have AST macros and reflection (both compile/run -time) than it's
far superior to just templates.
examples of some things that can be accomplished with that tool set:
- DBC (instead of putting it in the language [and not implementing it])
- Active objects and concurrency.
- Aspect oriented programming
- etc...






More information about the Digitalmars-d mailing list