Swift lets you use the explicit syntax if you want...
# language-proposals
b
Swift lets you use the explicit syntax if you want, but provides the bracket syntax for the normal case (
Array
,
Set
, and
Dictionary
share bracket syntax). I would say some team smarter than me should figure out what Kotlin's ideal "normal" collection type should be and give that special, easy initialization syntax. Then we'd still have the explicit one when we want a specific collection.
👍 2