Hacker News new | ask | show | jobs
by sualehasif 1192 days ago
GPT-4 certainly is aware of go generics. Do you have an example you would like to test?
1 comments

It does know that Go has generics if you ask it because 1.17 had experimental generics. But it doesn't know about 1.18 which is the official release of generics.

For example it doesn't know that Go has the any type that can be used in place for interface{}.