4 ms·
As a side note I just got GPT to write me some Go code and it came up with this: templates, err := embedFS.Sub("templates") interestingly, this is not val
by doctor_eval 4y ago
As a side note I just got GPT to write me some Go code and it came up with this:
templates, err := embedFS.Sub("templates")
interestingly, this is not valid Go code (Sub is a function in the "fs" package, not a method) - but it would be quite typical in say Java.
So this mistake makes me think that GPT certainly does have a "mental model" for Go. And it's made the same kind of logical mistake I made when I first learned Go.
- mercer 4y agoI wonder if it does better if you instruct it to 'pose' as a Go programmer. Or even one who comments to his younger Java-model self?