Am Sun, 19 Aug 2012 15:30:33 +0200 schrieb "bearophile" <[email protected]>:
> 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
