Re: [swift-corelibs-dev] JSONDecoder has too few opportunities. need an enhancement.

2017-11-10 Thread Itai Ferber via swift-corelibs-dev
Hi Vladimir, > On Nov 9, 2017, at 8:36 AM, Vladimir Kushelkov via swift-corelibs-dev > wrote: > > 1. Sometimes it is contently to be able to decode a struct or an object from > a Foundation object (either NSArray or NSDictionary) that produce a valid > JSON. > For example, if I use a 3d party

Re: [swift-corelibs-dev] encodeEncodable/decodeDecodable

2017-09-27 Thread Itai Ferber via swift-corelibs-dev
Hi Luke, Thanks for putting this together! In the meantime, CI testing has highlighted an issue that will need to be solved before this can be pulled in — namely that `NSKeyedUnarchiver` is currently incomplete as it does not implement or override `failWithError` properly. This is something w

Re: [swift-corelibs-dev] encodeEncodable/decodeDecodable

2017-09-25 Thread Itai Ferber via swift-corelibs-dev
Hi Luke, Thanks for putting this together! Do you mind putting that up as a [pull request](https://github.com/apple/swift-corelibs-foundation/pulls) so we can review it more formally and run it through CI? — Itai On 22 Sep 2017, at 19:53, Luke Howard via swift-corelibs-dev wrote: Had a cra

Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON encode/decode

2017-08-30 Thread Itai Ferber via swift-corelibs-dev
Hi Brandon, Thanks for looking at this! We’ve got plans internally to potentially add a strategy to `JSONEncoder`/`JSONDecoder` to allow lenient conversions like this — i.e. implicitly stringify numbers (or parse them from string input), among some others. This would be opt-in for consumers of

Re: [swift-corelibs-dev] Implementing HTTPCookieStorage

2016-11-14 Thread Itai Ferber via swift-corelibs-dev
>From my (potentially limited) experience, I would say that yes, many tools out >there do follow this spec. I only have anecdotal evidence to back this up, but I think many new tools use this convention, and those that don't do not out of long-standing conventions that say otherwise (e.g. `~/.vi