Subject: Re: Read-time _apply_: an external representation for any value
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1999/04/14
Newsgroups: comp.lang.scheme,comp.lang.lisp
Message-ID: <7f15lo$2hqe6@fido.engr.sgi.com>
Vassil Nikolov  <vnikolov@poboxes.com> wrote:
+---------------
|   rpw3@rigden.engr.sgi.com (Rob Warnock) wrote:
| > defined in most Schemes (and some Lisps?) as a kind of comment, to
| > support the Unix "#!/path/to/interp options" scripting convention.
...
| (If one wanted to write obfuscated Lisp, one could define the
| #! reader to do different things depending on whether the character
| after the '!' is a slash, or whether the character after the extended
| token following the #! is a space or a left parenthesis...  Whose is
| the law that says that every problem has a perverse solution?)
+---------------

Hey, many of the Schemes that support #! are *already* "perverse" in
*my* book, in that the special "this is a comment" behavior of #! is
only true if it is the first two characters of a file that's "load"ed
or "read" from!

And in at least one implementation, "#!" *isn't* equivalent to ";", but
rather more like "#|", and thus requires a closing "!#" to avoid gobbling
the rest of your file! (This is seen as a "benefit", since it allows multiple
lines of command-line options to be specified.)


-Rob

-----
Rob Warnock, 8L-855		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
2011 N. Shoreline Blvd.		FAX: 650-933-0511
Mountain View, CA  94043	PP-ASEL-IA