Advanced
emersonmacro@emerson
12/7/2022

Tried asking ChatGPT a programming question, and it gave me two suggestions that seemed plausible but were actually quite wrong. The prompt was `golang check if element in slice` (a slice is basically an array).

In reply to @emerson
emersonmacro@emerson
12/7/2022

The first answer was `if in `, which is valid Python but not valid Go. The second was `if strings.Contains(, )`. There is a `strings` package that has a `Contains` method, but it's to check if a substring is in the input string.