Honestly ChatGPT-4 sucks at writing code (if similar code isn't in its corpus of knowledge).
I asked it to write a YAML parser in pure Rust. The first thing it did was write this:
pub enum YamlNode {
Scalar(String),
Sequence(Vec<YamlNode>),
Map(HashMap<String, YamlNode>),
}
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.