CaramelForSwift / Caramel

A portable I/O framework for Swift
282 stars 20 forks source link

Use `private(set)` instead of private properties #2

Open bencochran opened 8 years ago

bencochran commented 8 years ago

I only recently learned that Swift supports tighter access restrictions for setters, making the dance of public readonly + private readwrite much simpler. Not sure when it snuck in to the language, but it’s there.