[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: [ddlm-group] Space as a list item separator>
- To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
- Subject: Re: [ddlm-group] Space as a list item separator>
- From: Joe Krahn <krahn@niehs.nih.gov>
- Date: Tue, 01 Dec 2009 13:43:17 -0500
- In-Reply-To: <alpine.BSF.2.00.0912010556370.27482@epsilon.pair.com>
- References: <C7398588.126B6%nick@csse.uwa.edu.au> <275884.79342.qm@web87006.mail.ird.yahoo.com> <84104.25546.qm@web87002.mail.ird.yahoo.com> <alpine.BSF.2.00.0911300822020.56763@epsilon.pair.com> <alpine.BSF.2.00.0911300835021.56763@epsilon.pair.com> <279aad2a0911301433se2d145fi9ac2df69cd047583@mail.gmail.com> <279aad2a0911302230v15316aadk9d27c252ce04bfc6@mail.gmail.com> <279aad2a0911302252m58914467k7931449848c6c6e6@mail.gmail.com><alpine.BSF.2.00.0912010556370.27482@epsilon.pair.com>
My low-weighted vote is for a uniform delimiter for all series of values. If #1 is deemed to be a better list delimiter, then it should be used to separate all adjacent values, not just bracketed lists. The backwards-compatibility argument that a comma-delimited list can be an opaque CIF1.1 string is somewhat valuable, but it would not apply to lists containing any string with spaces, and is only a short-term benefit. If commas are allowed, care needs to be taken in defining syntax rules. What happens if you mix commas and spaces in a single list? Is [1 2,3,4] the same as [1,2,3,4] or ["1 2",3,4], or a syntax error? If some people rally want commas, is it possible to define two list forms, where braces contain commas, and brackets do not? For example, {1,2,3,4} is equivalent to [1 2 3 4]? I think this idea relates to an earlier discussion of multiple list types, but this idea is to allow two syntax forms of the same common list type. I don't like the extra complexity, but maybe this is a useful compromise. Even if it is not used in actual CIF files, the bracket+comma notation could be a standard conversion syntax when you want to represent a list as a single string item. Joe Krahn Herbert J. Bernstein wrote: > First amending the arguments > > To summarise the arguments: > > 1. In favour of both space and comma > - comma is used in some other non-CIF contexts as a list delimiter > - comma allows a large subset of lists and arrays to be carried > opaquely in CIF 1 and CIF 1.1 documents. > > 2. Against comma: > - A single type of separator makes the grammar simpler > - Space is used everywhere else in CIF as a separator (consistency) > - Comma can then be used in non-delimited strings > _______________________________________________ ddlm-group mailing list ddlm-group@iucr.org http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- References:
- Re: [ddlm-group] Space as a list item separator (Nick Spadaccini)
- Re: [ddlm-group] Space as a list item separator (SIMON WESTRIP)
- Re: [ddlm-group] Space as a list item separator (SIMON WESTRIP)
- Re: [ddlm-group] Space as a list item separator (Herbert J. Bernstein)
- Re: [ddlm-group] Space as a list item separator (Herbert J. Bernstein)
- Re: [ddlm-group] Space as a list item separator (James Hester)
- Re: [ddlm-group] Space as a list item separator (James Hester)
- Re: [ddlm-group] Space as a list item separator (James Hester)
- Re: [ddlm-group] Space as a list item separator> (Herbert J. Bernstein)
- Prev by Date: Re: [ddlm-group] CIF 1.5
- Next by Date: Re: [ddlm-group] Space as a list item separator
- Prev by thread: Re: [ddlm-group] Space as a list item separator>
- Next by thread: Re: [ddlm-group] Space as a list item separator
- Index(es):