bignerdranch / Freddy

A reusable framework for parsing JSON in Swift.
MIT License
1.09k stars 119 forks source link

Proposal: replace function toJSON with a computed property json? #222

Closed okla closed 7 years ago

okla commented 8 years ago
// From
func toJSON() -> JSON
// to
var json: JSON

Just to simplify (swiftify) code a little.

davidahouse commented 7 years ago

@okla Yes, this might make the external interface simpler, but at this point I don't think we should introduce a breaking change for anyone using Freddy. We can consider it for the Swift 4 version, however.