Vladimir Keleshev

Results 146 comments of Vladimir Keleshev

> If it's truly inadvisable to have a flag and, say, a positional argument with the same name, then perhaps Docopt itself should rule it out. But as of now,...

@evnm in the reference implementation, each `--option`, `` and `command` is inserted as key in a json-like dictionary. The values of those keys could be different: - for `--options` it's...

@BurntSushi the ref. imp. is using full names (with characters like `-`), not to separate them from each other, but _only_ for readability.

> I think docopt.rs should have fairly free reign over the sugary struct-based API. :+1:

@amir20 @johari I tweeted: https://twitter.com/keleshev/status/628895056037060608 I hope you can help spread the word.

In what circumstances can `sys.argv` contain unicode in Python 2? I'm using docopt with both Python 2 and Python 3 and never experienced that problem.

I will merge it if you can explain the issue. > In what circumstances can sys.argv contain unicode in Python 2?

Seems like a reasonable solution. How do you plan to allocate `Child *children;`?

Oh, right, we know number of children while we generate code, so we can allocate enough of them. That's better than having a linked list, or separate type for each...

Some questions; 1. `.object.branch =` is C99 only, isn't it? If it is—we can just use comma-separated values for C89, right? 2. what's the problem with `union` inside `struct` in...