[swift-users] .apinotesc file placement?

2017-10-30 Thread Rick Mann via swift-users
I'm using a third-party C library shoehorned into a Framework. It does not have proper ENUM macros nor an apinotes file. I'd like to add one. I'm using Xcode 9. • Can I put the .apinotesc file in the Framework somewhere? • Can I make Xcode automatically compile it? Thanks. -- Rick Mann

Re: [swift-users] Parsing Decimal values from JSON

2017-10-30 Thread Kevin Lundberg via swift-users
Swift shouldn't be forced to adhere to the limitations of JavaScript. Just because JS doesn't know about decimals doesn't mean swift can't do better. Evtim, I don't believe JSONDecoder provides the access you are looking for. Have you filed a bug on bugs.swift.org? On 10/30/2017 6:02 AM,

Re: [swift-users] Parsing Decimal values from JSON

2017-10-30 Thread Rimantas Liubertas via swift-users
> > It seems that the JSON decoder parses it as Double then converts it to > Decimal which introduces errors in the parsing. That behavior is in fact > incorrect. > Why do you say that? JS in JSON stand for JavaScript, and Javascript has now idea about neither Decimal nor Integer numbers. Best