D-YAML icon indicating copy to clipboard operation
D-YAML copied to clipboard

Unclear API for `Emitter` constructor

Open Geod24 opened this issue 3 years ago • 1 comments

https://github.com/dlang-community/D-YAML/blob/57c725ab57d5dd5f6348cd0b5256cc4e11b8376b/source/dyaml/emitter.d#L158-L180

@WebFreak remarked that (on L176):

why are the given in values ignored in other cases? shouldn't this rather be using contracts?

The parameters in question are not documented either.

Geod24 avatar Jul 27 '22 09:07 Geod24

I have absolutely no idea... but I believe this library was either a pyyaml port or inspired by it, so the answer might be found there.

Herringway avatar Jul 27 '22 15:07 Herringway