Re: Blogging sucks

[prev] [thread] [next] [lurker] [Date index for 2005/10/13]

From: A. Pagaltzis
Subject: Re: Blogging sucks
Date: 22:16 on 13 Oct 2005
* Peter da Silva <peter@xxxxxxx.xxx> [2005-10-13 22:15]:
> 	What if I'm indenting something that isn't a code block?

Who cares? HTML has no generic “indent a block” mechanism, so
that the 

> Not to mention that *all* alternative solutions are *really*
> hateful.
> 
> 	indent << \!
> 	Any non-hateful solution is isomorphic to a "here" document.
> 	!

Since when are heredocs non-hateful? You have the choice between
a terminator that does not appear within the verbatim text (the
epitome of elegance) or escaping any appearances of the
terminator within the verbatim text (the paragon of beauty).

At the beginning of a line within a heredoc the parser is in an
ambiguous state: what follows may either be another verbatim line
or may be a hedoc end marker. If it’s the former but looks like
the latter, the parse will disambiguate wrongly, so escaping is
required. The solution is to require each line to be prefixed
invidually, so the parser can never guess wrongly by design, so
that you never have to escape anything.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>;
There's stuff above here

Generated at 20:00 on 17 Oct 2005 by mariachi 0.52