Robert Bastian

Results 390 comments of Robert Bastian
trafficstars

I tried TOML but I don't think it can do enums or something

I'm not sure how to model the TOML. https://stackoverflow.com/a/57560842. Without value enums users will be able to do things like ```toml keys.explicit = ["core/helloworld@1"] keys.all = true keys.none = true...

I think YAML is the better solution for human-friendly JSON. HSJON is niche, so users won't have linting, formatting etc. in their IDEs.

Locales, keys, and exporters are all nested, and those are the three things all users will have to set. Everyone will understand a nested JSON or YAML structure when they...

The point of the config file is to store things in a more hierarchical format, not to put the flat list of CLI arguments on disk.

The CLI options are bad, the API is too complex to model as a flat list of options. There are many options that are only valid in combination with/absence of...

Discussion: - @zbraniecki I'd prefer TOML or HJSON - @sffc It's annoying that we basically have three APIs - @robertbastian config is tricky to document - @sffc can use the...

I think it should stay a hint, similar to iterator. Giving an incorrect hint will not produce incorrect or undefined behaviour, it's just a bit less efficient.

I think it is useful to be able to provide both upper and lower bounds, as this might very well affect the choice of sink that a client uses. In...

I think we should follow `Iterator::size_hint`, the same way we use std's `fn len` naming instead of `fn length`