A literal is the source code representation of a value of a type, such as a number or string
let aEmoji =
Yes, anything that isn't an integer literal (
1), floating-point literal (
1.0) or String literal (
"foo"), Array literal (
[foo]), Dictionary literal (
[foo : bar]), bool literal (
false) isn't a literal and would cause an error.
Anything that isn't one of the literals above isn't a literal, and could cause an error (if it's an invalid syntax).
You can make put an emoji in a string literal, however:
let aEmoji = "