Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: note about string versus boolean values for certain deme names. #163

Open
grahamgower opened this issue Mar 10, 2023 · 2 comments
Open

Comments

@grahamgower
Copy link
Member

Related to #162, we should note in the docs that certain deme names are likely to be misinterpreted as boolean values with YAML v1.1 parsers and should thus be quoted in the input file (or avoided). y, n, and no all seem like plausible deme names to me.

YAML v1.1, from https://yaml.org/type/bool.html

y|Y|yes|Yes|YES|n|N|no|No|NO
|true|True|TRUE|false|False|FALSE
|on|On|ON|off|Off|OFF

YAML v1.2, from https://yaml.org/spec/1.2.2/#1032-tag-resolution

true | True | TRUE | false | False | FALSE

I note also that null will not be interpreted as a string, but it seems pretty unlikely that anyone would use this as a deme name.

@jeromekelleher
Copy link
Member

Possibly worth referring to the Norway problem for more context.

@molpopgen
Copy link
Contributor

I guess I should figure out what demes-rs is using. The yaml crate isn't clear upon a quick read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants