trait for (ddoc)-comments

Marco Leise Marco.Leise at gmx.de
Sun Aug 19 07:39:38 PDT 2012


Am Sun, 19 Aug 2012 15:30:33 +0200
schrieb "bearophile" <bearophileHUGS at lycos.com>:

> David:
> 
> > I want to get the (ddoc)-comment of a certain 
> > function/member/struct … so I can generate help-messages at 
> > compiletime, without the need to duplicate the comments.
> 
> I am sure there are MANY other possible applications for such a 
> trait. Compile-time doctests maybe are a bit too much (but they 
> are OK for compile-time functions!), but things like this become 
> possible:
> http://pypi.python.org/pypi/docopt/0.1
> 
> Bye,
> bearophile

Jesus! Did Nick write docopt? It's full of swear words. Hmm,
no, Vladimir Keleshev. It sounds nice, I would see the common
Python way of parsing options a big step forward already. E.g.
including help texts and printing the usage info to stdout.

-- 
Marco



More information about the Digitalmars-d mailing list