Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upis the array behavior correct? #15
Comments
|
I think you have a valid point. When I pipe the input you show above into
Not sure I will have time to chase this though. |
|
Try the new branch I pushed: edd@max:~/git/rcpptoml(bugfix/issue15)$ r -lRcppTOML -p -e'parseTOML("/tmp/devin.toml")'
List of 1
$ products:Dotted pair list of 3
..$ :List of 2
.. ..$ name: chr "Hammer"
.. ..$ sku : int 738594937
..$ : list()
..$ :List of 3
.. ..$ color: chr "gray"
.. ..$ name : chr "Nail"
.. ..$ sku : int 284758393
edd@max:~/git/rcpptoml(bugfix/issue15)$ |
|
Winner winner! Works perfectly for both the example and the internal code I was using when ran into the issue For later reference, session_info
|
|
Great. That was by the way pretty close to the perfect bug report and you clearly showed what you were getting, what you were expecting and what you got. Good work for a weekend afternoon |
|
:-) always try to be a good OSS citizen. So far moving things away from yaml to toml has been A+ |
Hi Dirk,
Maybe I am reading the spec for TOML incorrectly, but using the following example:
I would expect the resulting structure to be a list of lists
This seems consistent with the example given https://github.com/toml-lang/toml#user-content-array-of-tables
vs the current implementation, which gives
which seems the equivalent of
which makes it 'impossible' to query by name