Hi everyone,
Just throwing this out to see if anyone else is working on this, or has
opinions/suggestions on how it’s implemented. I’d like to add this to the
Codable/JSONDecoder/JSONEncoder system if no one else is working on it.
Type type conversion, I mean given this JSON payload:
{
017, at 10:59, Sneed, Brandon via swift-corelibs-dev wrote:
Hi everyone,
Just throwing this out to see if anyone else is working on this, or has
opinions/suggestions on how it’s implemented. I’d like to add this to the
Codable/JSONDecoder/JSONEncoder system if no one else is working on it.
Typ
f doing that kind of conversion in
the type itself.
JSON has very few types already. I’m not sure we want to blur the line between
numbers and strings automatically…
- Tony
On Aug 30, 2017, at 11:24 AM, Sneed, Brandon via swift-corelibs-dev
mailto:swift-corelibs-dev@swift.org>> wrote:
Hi
the URL struct) on how this can be
implemented.
Thanks,
Youming Lin
IBM Cloud, Swift@IBM, Kitura developer
Austin, TX
GitHub: @youming-lin
[nactive hide details for "Sneed, Brandon via swift-corelibs-dev"
---08/30]"Sneed, Brandon via swift-corelibs-dev" ---08/30/2017 03:07:
%3DgkRZBtsmKeGPCOlAIRJoOA%26m%3Dc3lYikOfd2-4q_nd_qMnJ4gXKIuKuxxoJRxIrIZc3Hw%26s%3Dh1azblXptqRwHqDQhejN9sSFa8dR-Gd8OkB7_6VwgNg%26e%3D&data=02%7C01%7Cbrsneed%40ebay.com%7Cebd9669255614ce4dccc08d4efef218c%7C46326bff992841a0baca17c16c94ea99%7C0%7C0%7C636397257717072726&sdata=TIZrCfocLCJGcfOj%2B9V2FEiXP
551372-26sdata-3DoLr1Q10-252BztzwG-252BCXpMinBzJNTwSy-252FjoBsKm9Glg1-252FxY-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DgkRZBtsmKeGPCOlAIRJoOA%26m%3Dc3lYikOfd2-4q_nd_qMnJ4gXKIuKuxxoJRxIrIZc3Hw%26s%3Dh1azblXptqRwHqDQhejN9sSFa8dR-Gd8OkB7_6VwgNg%26e%3D&data=02%7C01%7Cbrsneed%40ebay.com%7Cebd96692556
data=02%7C01%7Cbrsneed%40ebay.com%7Cebd9669255614ce4dccc08d4efef218c%7C46326bff992841a0baca17c16c94ea99%7C0%7C0%7C636397257717072726&sdata=TIZrCfocLCJGcfOj%2B9V2FEiXPSTKN4hnL1Rm03GqHvk%3D&reserved=0>
You can check Foundation source code (i.e., the URL struct) on how this can be
implemen
Yeah, I don’t know about the “many types” part. But essentially, if you’re a
service developer, you’ll probably have at least 3 clients. Web, Android and
iOS. Javascript does this conversion transparently, GSON also does this
conversion. iOS ends up being the odd man out in this case.
This
Just a quick follow up on that last reply…
As dumpy of an excuse as that is (doing it because the other 2 big platforms do
it) when we’re talking about some tech that is very cross platform, I think
it’s worth considering.
Brandon Sneed
From: on behalf of "Sneed, Brandon via
swift-cor
+1 from me.
I ended up making a wrapper objc->swift around system() since it was removed
from swift recently, however, it behaves (from a user standpoint) exactly how
I’d like. If my command line util jumps out to another program and it needs
stdin/out/err, it all just passes through which is
10 matches
Mail list logo