[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: CIF-JSON draft 2017-05-08
- Subject: Re: CIF-JSON draft 2017-05-08
- From: Marcin Wojdyr <wojdyr@xxxxxxxxx>
- Date: Thu, 11 May 2017 09:18:12 +0100
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;h=mime-version:in-reply-to:references:from:date:message-id:subject:to;bh=/uYUlOqMUCJTvgc5lWBtiYWNFqCK9W90t8yEFunKpcw=;b=Hw35SPIajeh7MV2jopFt4G5LB45aG4yT4oW/OP5gPnE8ITUzldI36yY9L0EgzhxX+LKBE7JzW+feQtoR00YmJpV3JXkh51BbpdqKKOXCD2B8/1tWaiZPksBtabTACqT1nxCUgczYCiydP242oC+hE7eJHG+JuwVUQtfBjXBlSr4nbC6rdX0AhpeXhqXzCQUXrHJ5AaPaFsRBv9RAVPmV2gY+l37++UcHu6CZ/67PlIsIN+1Kp0xO5hgLS/xc6AlmByyw8l5r8XdsBFjoU57KbHyuQICcxm+UJTq8p1Da5DZ9+mrqD5URm91Jq54cuschfftQ3ii2jDQQ4LRdlQ5yBg==
- In-Reply-To: <CAM+dB2d9G9Hxoz2BToMoVPRdY9_kDvjRBAuJaSgzFAw26fDBtA@mail.gmail.com>
- References: <CAM+dB2cwoCG6LhPUePRup_hQtM9mXqwL4tULTPf-WGwJGtKrOA@mail.gmail.com><MWHPR04MB051220BFF5C7093CD86702CCE0EE0@MWHPR04MB0512.namprd04.prod.outlook.com><CAF_YUvW=i0XjfzmgA=m03a=X4Y03+FfH8_TAZ2dNPVAhCmuy5w@mail.gmail.com><MWHPR04MB0512E4FA07327A5E9103106CE0EE0@MWHPR04MB0512.namprd04.prod.outlook.com><CACaHzQVez_WUma3z2mAXYroiJtEDtxaUAS-n0Noz-R=nPBTF+w@mail.gmail.com><MWHPR04MB05120B2E2061754ABEBED31AE0EE0@MWHPR04MB0512.namprd04.prod.outlook.com><CACaHzQXKMAqo97iZ6ZdHP_yFhRVKiEBsyMbHZxkBxKwPPcc7LA@mail.gmail.com><MWHPR04MB0512A0D165506326550ED871E0EF0@MWHPR04MB0512.namprd04.prod.outlook.com><CAM+dB2fyQe2KSNRv-+q=Sq3NFWSCK72kBTsUiiJfeSa=PQfvNQ@mail.gmail.com><CACaHzQXxiB=eACzuxT+bqmYyCmcVa-ZABkKOLzm3C5-53xYFvA@mail.gmail.com><CAM+dB2d9G9Hxoz2BToMoVPRdY9_kDvjRBAuJaSgzFAw26fDBtA@mail.gmail.com>
On 11 May 2017 at 08:28, James Hester <jamesrhester@gmail.com> wrote:> The problem with requiring that CIF numbers = JSON numbers is that it is not> generally possible for a CIF->JSON parser to know when a CIF value is a> number instead of simply a non-delimited string that looks like a number. I forgot about it. Indeed, it's a valid argument. When I started experimenting with CIF parser a few months ago Inoticed that some programs (I think cif2cif was one of them) justtreat what looks like a number as a number, ignoring the ambiguityleft in the CIF spec. But this indeed would not be fully specconforming. Forget about my previous email. > The consumer of the JSON, on the other hand, will know which of the> datanames that it cares about are numeric and perform the conversion (as per> CIF rules, I don't know if the C++17 standard is relevant here). I meant that there is no simple way to a write numb parser in C/C++ otherwise. Marcin_______________________________________________cif-developers mailing listcif-developers@iucr.orghttp://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- Follow-Ups:
- RE: CIF-JSON draft 2017-05-08 (Bollinger, John C)
- References:
- CIF-JSON draft 2017-05-08 (James Hester)
- RE: CIF-JSON draft 2017-05-08 (Bollinger, John C)
- Re: CIF-JSON draft 2017-05-08 (Robert Hanson)
- RE: CIF-JSON draft 2017-05-08 (Bollinger, John C)
- Re: CIF-JSON draft 2017-05-08 (Marcin Wojdyr)
- RE: CIF-JSON draft 2017-05-08 (Bollinger, John C)
- Re: CIF-JSON draft 2017-05-08 (Marcin Wojdyr)
- RE: CIF-JSON draft 2017-05-08 (Bollinger, John C)
- Re: CIF-JSON draft 2017-05-08 (James Hester)
- Re: CIF-JSON draft 2017-05-08 (Marcin Wojdyr)
- Re: CIF-JSON draft 2017-05-08 (James Hester)
- Prev by Date: Re: CIF-JSON draft 2017-05-08
- Next by Date: RE: CIF-JSON draft 2017-05-08
- Prev by thread: Re: CIF-JSON draft 2017-05-08
- Next by thread: RE: CIF-JSON draft 2017-05-08
- Index(es):