bignerdranch / Freddy

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

Added Int, Double, Bool conversion to String #196

Closed DarkSatyr closed 8 years ago

DarkSatyr commented 8 years ago

On my opinion conversion from Int, Double, Bool to String can be very useful, for ex. next situation: I have Itinerary number something as 3445452345 on 64-bit platform it's Integer, but on 32-bit it will be converted to String (because number is bigger than Int.max). To have two condition it's not convenience and error-prone so I want to force this value to be a String.

Also as a client I want to operate on some values as on Strings not matter is it Int or String actually