Subject: Re: E. W. Dijkstra VS. John McCarthy. A rebuttal to Paul Graham's web writings.
From: rpw3@rpw3.org (Rob Warnock)
Date: Sun, 15 Aug 2004 09:10:58 -0500
Newsgroups: comp.lang.lisp
Message-ID: <Rvadnb-VLptv84LcRVn-ig@speakeasy.net>
Andr� Thieme  <address.good.until.2004.oct.20@justmail.de> wrote:
+---------------
| Here is a little programm, written in php:
| <?php
|      echo "<html>\n";
|      echo "<head>\n";
|      echo "</head>\n";
|      echo "<body>\n";
|      echo "<br>\n";
|      echo "<br>\n";
|      echo "<center>\n";
|      echo "Hello World\n";
|      echo "</center>\n";
|      echo "</body>\n";
|      echo "</html>";
| ?>
+---------------

O.k., I'll bite:    ;-}  ;-}

In Common Lisp, with Tim Bradshaw's HTOUT macro package, this:

  (with-html-output (s *standard-output*)
    (:html
      (:head "")
      (:body :br :br (:center "Hello World"))))

outputs this:

  <HTML><HEAD></HEAD><BODY><BR><BR><CENTER>Hello World</CENTER></BODY></HTML>

Now, which is easier to write...?  ;-}  ;-}


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607