What does the `` around default mean in the following code below?
In what cases would you want to use it?
static let `default` = User(id: UUID(), name: "Anonymous")
Thank you in advanced
The backticks allow you to use restricted keywords in places where they otherwise couldn't be used, such as variable names.
default
is a restricted keyword in Swift, but by putting backticks around it, it becomes a valid variable name.
Without the backticks, your code would result in the error
Keyword 'default' cannot be used as an identifier here