On Sat, Mar 13, 2021 at 06:48:22PM +0100, Tomas Hlavaty wrote:
>    (de <div> (Col . Prg)
>       (prin "<div class=\"" Col "\">")
>       (run Prg)
>       (prin "</div>") )
> 
> prin has side-effect.

Nonsense! 'prin' *is* the only and desired effect.


> Col is not properly escaped!

How so? It generates

   <div class="red">

What kind if escape do you want?



> This example:
> 
>    (de <p> Prg
>       (prin "<p>")
>       (run Prg)
>       (prin "</p>") )
> 
> These functions output the formatted html immediatelly, which is too
> early for reasons I wrote about already.

This is the last time I repeat: It is the PURPOSE! Nothing else is there
which might be "too early".

This discussion is useless.


> So will I see the generated html in stderr?

Sigh! Please think a little. I said the output goes to the current stream and
debug info to stderr. Good old Unix style.

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to