Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Go
/
Go
Which statement about deferred calls is correct?
from Go
advanced
1 min
Which statement about deferred calls is correct?
Direct call arguments are evaluated when `defer` executes, and deferred calls later run in last-in, first-out order.
Arguments are first evaluated when the surrounding function returns, in first-in, first-out order.
Deferred calls run only on normal return, never during panic unwinding.
Check
Ask AI about this kata
Report an error
previous kata
A function appends to a slice. Which rule keeps the result correct whether or not a new b…
Quiz
next kata
A sentinel has been wrapped twice. Which check preserves the caller contract?
Quiz
A new version is available
Reload