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

Robert Fraser fraserofthenight at gmail.com
Fri Jul 4 15:16:46 PDT 2008


superdan wrote:
> narp. getopt is better for 2 reasons. first, if i want to have an option with a dash in it, with getopt you say;
> 
> bool showControlChars;
> getopt(args, "show-control-chars", &showControlChars);
> 
> i and you and anyone who's used getopt once knows how to do that. but i have no idea how to do that in c#. there may be some shitty attribute to do so but i have to go check the manual. who wins?

So, just to be clear, your argument is "I don't understand the C# way, 
so getopt is better"?



More information about the Digitalmars-d mailing list