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
/
Swift
/
Enums and pattern matching
When is @unknown default preferable to an ordinary default?
from Enums and pattern matching
Swift 6.3.3
advanced
1 min
When is @unknown default preferable to an ordinary default?
When switching over a nonfrozen enum from another module that can add future cases.
Whenever an enum has associated values.
Whenever several current cases share one implementation.
Check
Ask AI about this kata
Report an error
previous kata
Which model correctly stores a different server message in every failure value?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload