On Sat, Oct 12, 2013 at 6:31 PM, Dave Cridland <[email protected]> wrote: > > On 12 Oct 2013 17:17, "Waqas Hussain" <[email protected]> wrote: >> As a general rule, if you embed one textual language inside another, >> escaping is pretty much mandatory. If you see a way around it, you are >> probably mistaken and missing the edge cases. > > MIME. > > Do I win a prize? >
Would getting to write a MIME over XMPP spec be a suitable prize? But wait, MIME has escape sequences (and also, what MIME exactly? there's so much to choose from in there...). :) If you have a structured language with delimiters, and the content inside those delimiters can contain the delimiters themselves, you need escaping (as we discovered in the entity caps preimage issue). Ways around that include length-encoding (which I'd say is very non-friendly to humans), or EOF as end delimiter (which greatly limits your structure). -- Waqas
