Discussion List Archives

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

[ddlm-group] EOF keyword?

Although my preference is to avoid extra complexity, one addition that 
may be worth considering is an EOF keyword.

One common way to deal with binary data is to put a human-readable ASCII 
header, followed by raw binary data. A file could have a "normal" UTF-8 
CIF2 header, an EOF marker, then binary data. The advantage is that the 
binary data needs no encoding/decoding, and it avoids any conflicts 
between character encoding. The big disadvantage is that it really only 
works well for a single binary object per file.

Perl has an __END__ keyword. It is often used to insert text 
documentation at the end, without having to worry about escape codes, 
etc. Maybe some people will think this is useful, or maybe not.

Joe Krahn
_______________________________________________
ddlm-group mailing list
ddlm-group@iucr.org
http://scripts.iucr.org/mailman/listinfo/ddlm-group

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.