[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: [ddlm-group] Data-name character restrictions - one last time
- To: Group finalising DDLm and associated dictionaries <[email protected]>
- Subject: Re: [ddlm-group] Data-name character restrictions - one last time
- From: David Brown <[email protected]>
- Date: Thu, 10 Dec 2009 13:55:27 -0500
- In-Reply-To: <[email protected]>
- References: <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <a06240802c7463c929515@[192.168.2.104]><[email protected]>
|
I agree with Herbert. If the CIF2 lexers can handle the -/[ and ]
characters in a nondelimited data name string, then there is no reason
for excluding them from the CIF2 definition. In CIF2 all data names
are converted to the standard DDLm data names before use using the
aliases. We also note that we will avoid using these characters in any
new data names and dREL will only recognize the standard DDLm data
names. In this way CIF2 applications make no distinction between CIF1
and CIF2 data files and can deal with hybrids which could otherwise
cause problems, e.g., data names with -/[ or ] occuring in a CIF2 file
along with arrays and other CIF2 features. The user will be aware of
the extensions, but will not be aware of any distinction between CIF2
and CIF1 data files. It is a beautiful, clean solution that meets the
requirement of backward compatibilty. David Joe Krahn wrote: FWIW, here is my view. Whatever the formal standard defines, it is almost certain that many CIF2 implementations will allow CIF1 data names for all of the practical reasons defined by Herbert. Other people prefer to avoid a "messy" implementation, and make a strict conversion to CIF2. As Brian points out, there is quite a bit of diversity in CIF and pseudo-CIF implementations. Sometimes (often?) it is due to not reading the CIF specifications; that is how PDB atom name element-alignment rules got mutilated. Other times, it is for practical reasons to get work done. I think a good analogy is Fortran77. Fortran language development stalled after that due to conflicting views on modernization versus maintaining traditional Fortran. Meanwhile, people needed to get work done, and compiler developers added many non-standard extensions. Most Fortran code used these extensions, and many became almost universal. Everyone still called it Fortran. So, maybe it really does not matter if "standard" CIF2 allows CIF1 data names. Everyone that wants to will do it anyhow, and others will run them through dictionary aliases before using the non-standard data files. Fortran developed slowly due to lack of agreement, leading to many annoyances that were being solved quickly by newer programming languages. That is why Fortran is almost dead. So, the other lesson is that CIF needs to avoid annoying the user base, or they will just switch to XML, and this work will all be for nothing. If the consensus is to keep name restrictions to promote proper DDLm-compatible names, it might be worth writing a formal CIF2 extension. This would keep the non-standard naming implementations compatible, while still making it clear that they are not proper CIF2. I always write code to compile flags for strict standards compliance. It often avoids problems, but can also prevent me from using some useful language extensions. Other people are happy to mandate Gnu compilers, and benefit from those features -- Gnu libc uses them a lot. Joe Herbert J. Bernstein wrote: |
begin:vcard fn:I.David Brown n:Brown;I.David org:McMaster University;Brockhouse Institute for Materials Research adr:;;King St. W;Hamilton;Ontario;L8S 4M1;Canada email;internet:[email protected] title:Professor Emeritus tel;work:+905 525 9140 x 24710 tel;fax:+905 521 2773 version:2.1 end:vcard
_______________________________________________ ddlm-group mailing list [email protected] http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- References:
- [ddlm-group] Data-name character restrictions - one last time (Brian McMahon)
- Re: [ddlm-group] Data-name character restrictions - one last time (David Brown)
- Re: [ddlm-group] Data-name character restrictions - one last time (James Hester)
- Re: [ddlm-group] Data-name character restrictions - one last time (James Hester)
- Re: [ddlm-group] Data-name character restrictions - one last time (Herbert J. Bernstein)
- Re: [ddlm-group] Data-name character restrictions - one last time (Joe Krahn)
- Prev by Date: Re: [ddlm-group] Data-name character restrictions - one last time
- Next by Date: Re: [ddlm-group] Data-name character restrictions - one last time
- Prev by thread: Re: [ddlm-group] Data-name character restrictions - one last time
- Next by thread: [ddlm-group] Revised version of syntax change summary document
- Index(es):

