[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: James Hester <jamesrhester@gmail.com>
To: ddlm-group <ddlm-group@iucr.org>
Sent: Thursday, 28 April, 2011 7:49:06
Subject: [ddlm-group] Removing comma from non-delimited strings
Dear DDLm group,
As foreshadowed in the comma-as-list-delimiter discussion, I would
like to suggest adding comma to the list of disallowed characters in
non-delimited text strings, for the following reasons:
(1) This will improve human readability inside lists if the data value
contains commas, for example:
_my_numbers = [1,2,3,4,5,6,7]
is a single-element list although it will appear to be a 7 element
list to all but a CIF2 expert.
(2) Robust CIF2 programs can interpret commas as list delimiters
without danger of misinterpretation.
--
T +61 (02) 9717 9907
F +61 (02) 9717 3145
M +61 (04) 0249 4148
_______________________________________________
ddlm-group mailing list
ddlm-group@iucr.org
http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
Re: [ddlm-group] Removing comma from non-delimited strings
- To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
- Subject: Re: [ddlm-group] Removing comma from non-delimited strings
- From: SIMON WESTRIP <simonwestrip@btinternet.com>
- Date: Thu, 28 Apr 2011 20:25:01 +0100 (BST)
- In-Reply-To: <BANLkTim-Hve+-7rtd8BXJ7983Z+PnOCS7A@mail.gmail.com>
- References: <BANLkTim-Hve+-7rtd8BXJ7983Z+PnOCS7A@mail.gmail.com>
If comma is not allowed in non-delimited strings, then
isnt _my_numbers = [1,2,3,4,5,6,7] a syntax error?
Or do you mean that a comma cannot start a non-delimited string
(in which case 1,2,3,4,5,6,7 is indeed a single value)?
How does a 'robust CIF2 program' interpret
_names [Mitterrand,Fran\,cois] ?
Cheers
Simon
isnt _my_numbers = [1,2,3,4,5,6,7] a syntax error?
Or do you mean that a comma cannot start a non-delimited string
(in which case 1,2,3,4,5,6,7 is indeed a single value)?
How does a 'robust CIF2 program' interpret
_names [Mitterrand,Fran\,cois] ?
Cheers
Simon
From: James Hester <jamesrhester@gmail.com>
To: ddlm-group <ddlm-group@iucr.org>
Sent: Thursday, 28 April, 2011 7:49:06
Subject: [ddlm-group] Removing comma from non-delimited strings
Dear DDLm group,
As foreshadowed in the comma-as-list-delimiter discussion, I would
like to suggest adding comma to the list of disallowed characters in
non-delimited text strings, for the following reasons:
(1) This will improve human readability inside lists if the data value
contains commas, for example:
_my_numbers = [1,2,3,4,5,6,7]
is a single-element list although it will appear to be a 7 element
list to all but a CIF2 expert.
(2) Robust CIF2 programs can interpret commas as list delimiters
without danger of misinterpretation.
--
T +61 (02) 9717 9907
F +61 (02) 9717 3145
M +61 (04) 0249 4148
_______________________________________________
ddlm-group mailing list
ddlm-group@iucr.org
http://scripts.iucr.org/mailman/listinfo/ddlm-group
_______________________________________________ ddlm-group mailing list ddlm-group@iucr.org http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- Follow-Ups:
- Re: [ddlm-group] Removing comma from non-delimited strings (James Hester)
- References:
- [ddlm-group] Removing comma from non-delimited strings (James Hester)
- Prev by Date: Re: [ddlm-group] Removing comma from non-delimited strings
- Next by Date: Re: [ddlm-group] Removing comma from non-delimited strings
- Prev by thread: Re: [ddlm-group] Removing comma from non-delimited strings
- Next by thread: Re: [ddlm-group] Removing comma from non-delimited strings
- Index(es):