-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Inconsistency bug or a feature in 0.7.0 #1275
Comments
I just stumbled over a similar thing, as of 0.8.0. If you put |
So, basically, with some arbitrary YAML map like: key1:
key2:
key3: value The following code will act in a rather unexpected way:
|
Yes, this broken const-correctness & copy-correctness breaks each and every attempt to compose yaml parsing and is extremely annoying. Essentially, a |
Yes, this is a design trade off. Probably should be in the docs, agreed. PRs welcome. "Fixing" it would require a major API change so I'd want to be really careful about it. If you have a good idea, I'm open to it also. |
@jbeder this causally undocumented "design trade off" already cost me days of frustrated debugging... I can't even tell what I feel about that. This thing is critically important to be at least documented so others wouldn't waste time on it. Please do it. I have some ideas how to mitigate that, but for that I need to understand how do I create/return a Node object that will test Essentially the idea is to |
I'm sorry this cost you lots of time. Unfortunately, I don't have time to work on this library any more. But patches welcome! |
THe following code test yaml and the accompanying code snippet fails on the second try:
the test yaml:
The code snippet
output:
if I now comment out the second occurance of "currentNode = currentNode["Test"];" assignment, the output is as expected. Bug or feature?
I use version 0.7.0 from conda-forge.
Any ideas?
The text was updated successfully, but these errors were encountered: