Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CIF-JSON new draft

That's true. I hadn't thought of that. Of course, that's what the === operator is for.


Never mind.

John, what's the issue?


On Wed, May 3, 2017 at 5:53 PM, Marcin Wojdyr <wojdyr@gmail.com> wrote:
On 3 May 2017 at 23:41, Robert Hanson <hansonr@stolaf.edu> wrote:
> John has an interesting point. For example:
>
> {
> "_chemical_formula_sum": null
> }
>
> cannot be distinguished easily from
>
> {
> }
>
> (You can iterate through all keys to see if one is missing, but that is not
> typically how it is done.)

If it's about JS I don't understand your point. In one case the
property is null and in the other it's undefined. Clearly different.

Marcin
_______________________________________________
cif-developers mailing list
cif-developers@iucr.org
http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers



--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900

_______________________________________________
cif-developers mailing list
cif-developers@iucr.org
http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers

Reply to: [list | sender only]
International Union of Crystallography

Scientific Union Member of the International Council for Science (admitted 1947). Member of CODATA, the ICSU Committee on Data. Member of ICSTI, the International Council for Scientific and Technical Information. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

ICSU Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.