MartinKoch123 / yaml

MATLAB YAML parser and emitter based on SnakeYAML
MIT License
22 stars 7 forks source link

New dictionary built-in #10

Open billtubbs opened 2 years ago

billtubbs commented 2 years ago

Did you hear about this?

Any thoughts on whether this impacts yaml?

MartinKoch123 commented 1 year ago

Hey, I only found the time now to answer. I think the new dictionaries are probably better to represent YAML maps than structs since there are no restrictions on the key. However I won't make it the default now to support older MATLAB versions. Maybe I'll add an option to switch to dictionaries. Thanks for the hint!

billtubbs commented 1 year ago

Yeah, I wouldn't change anything to soon. The struct has been the main alternative to dictionaries since the beginning so I expect most people including me still use it (I tried containers.Map and gave up on that pretty quick!). I guess it will take a few years before everyone's using dictionaries.