Re:Programming with Natural Language Is Going to Work (2010)
by hderms on Wednesday May 24, 2023 @07:29AM
(#36056529)
Why does it suck, because it's doing a lot of allocations?
Re:Programming with Natural Language Is Going to Work (2010)
by Ygg2 on Wednesday May 24, 2023 @07:41AM
(#36056624)
No. You have a fair point, but not my biggest gripe. It's much more fundamental to what YAML is.
Yaml allows YamlNodes as keys in a map (aka complex keys). You asked it for YAML parser and it gave you a shitty JSON parser.
It's like asking for a house plan and it gives you a carboard box.
I asked it to write a YAML parser in pure Rust. The first thing it did was write this:
This is what I expect a freshman in college to write as their first Yaml parser.Literally unusable as a starting point.
I did try to correct it but it tripped up and somehow managed to fuck that up to.