Eric Sosman<esosman@ieee-dot-org.invalid> writes:
... and "natural" is a little unnatural, it seems to me. If
the various E are truly independent -- if l is merely a Collection
for the purposes of the loop -- one wonders where the interloper at
position 0 came from.
This is code for my new mark-up language. A section might
look like:
< [This is an example heading]
[This is the first paragraph of the body.]
[This is the last paragraph of the body.]>
. The first entry of a section always is interpreted as its
heading, so a heading does not require additional mark-up.
The code to convert this section to HTML converts the first
entry ?[This is an example heading]? into an HTML heading
element. Then it loops through the rest of the entries to
convert them to HTML paragraph elements.
an identifier. It may not even be necessary to have a comment explaining
for( final E e : body ) ...