mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
9ead8781d4
Co-authored-by: Alex Martini <amartini@apple.com> Co-authored-by: Graham Lee <glee23@apple.com> Co-authored-by: Chris Adamson <cadamson@apple.com> Co-authored-by: Kirby Turner <kirby_turner@apple.com> Co-authored-by: Paris Pinkney <ppinkney@apple.com> Co-authored-by: Dave Spector <dspector@apple.com> Co-authored-by: Sofia Rodriguez Morales <sofia_rodriguez@apple.com> Co-authored-by: Ethan Kusters <ekusters@apple.com> Co-authored-by: Goli Mohammadi <g_mohammadi@apple.com> Co-authored-by: Adora Vaz <a_vaz@apple.com> Co-authored-by: David Rönnqvist <ronnqvist@apple.com> Co-authored-by: Nate Merseth Cook <natecook@apple.com> Co-authored-by: Susan Conant <susan_c@apple.com>
32 lines
777 B
Markdown
32 lines
777 B
Markdown
# Initialization with Literals
|
|
|
|
Allow values of your type to be expressed using different kinds of literals.
|
|
|
|
## Topics
|
|
|
|
### Collection Literals
|
|
|
|
- ``Swift/ExpressibleByArrayLiteral``
|
|
- ``Swift/ExpressibleByDictionaryLiteral``
|
|
|
|
### Value Literals
|
|
|
|
- ``Swift/ExpressibleByIntegerLiteral``
|
|
- ``Swift/ExpressibleByFloatLiteral``
|
|
- ``Swift/ExpressibleByBooleanLiteral``
|
|
- ``Swift/ExpressibleByNilLiteral``
|
|
- ``Swift/StaticBigInt``
|
|
|
|
### String Literals
|
|
|
|
- ``Swift/ExpressibleByStringLiteral``
|
|
- ``Swift/ExpressibleByExtendedGraphemeClusterLiteral``
|
|
- ``Swift/ExpressibleByUnicodeScalarLiteral``
|
|
- ``Swift/ExpressibleByStringInterpolation``
|
|
- ``Swift/StringInterpolationProtocol``
|
|
- ``Swift/DefaultStringInterpolation``
|
|
|
|
### Default Types for Literals
|
|
|
|
- <doc:default-literal-types>
|