Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which operation panics when records is a nil map[string]int?" on CodeWiki (https://codewiki.com/practice/mcq/go/maps/nil-map-operations/).
Context (verbatim from the page):
"""
Which operation panics when records is a nil map[string]int?
Reading records["id"]
Calling delete(records, "id")
Ranging over records
Assigning records["id"] = 1
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Go. Where you are unsure, say so.