[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]