Swift: Please use { } for dictionary literals instead of [ ]

Originator:bryan
Number:rdar://17930666 Date Originated:8/6/2014
Status:Open Resolved:
Product:iOS 8 SDK Product Version:
Classification: Reproducible:Yes
 
Summary:
Using brackets ([ ]) for both arrays *and* dictionaries makes object literals much harder to read. I'd like to kindly request that dictionary literals be denoted with curly braces ({ }), as found in Objective-C, JavaScript, etc.

Steps to Reproduce:
Create a dictionary using Swift literal syntax

Expected Results:
Use curly braces (e.g. { }) to denote dictionary literals

Actual Results:
Dictionaries literals are denoted using brackets (e.g. [ ])

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!