flaig@xxxxxxxxxxxxxxx wrote:
Maybe I have misunderstood something, but I always thought that
accessing the "content" of http://fu/ were just a conventionalized
shorthand for http://fu/index.html ? Or is "index.html" required only
because servers are based on file systems?
That's it, it's only required because of this. fu/ and fu/index.html are
completely different entities. Filebased webservers need to do some sort
of special handling of fu/ because fu/ is a directory. picking up
index.html, listing the directory, what have you..
Funny enough, a few of my friends and myself have designed (mostly
for the fun of it) a functional programming language named EQUUS (the
name being an acronym for "EQUivalence of all Useful Stuff"), which
is partly based on comparable ideas. If you are interested, you will
find our web pages at http://www.incitatus.net .
Wow. That primetime.q code snippet was completely incomprehensible. ;)
In contrast, in Unununium I would do something more like
"mpg123(grassgreen)". The expression "grassgreen" is not a
reference to a string, but a reference to the thing which I want to
play. There is no global namespace, so the mpg123 function can't
access anything but "grassgreen".
Or maybe grassgreen.play()?
Or,
adapt(grassgreen, IMediaPlayer).play()
If you wanna be more Zope3-ish. ;)
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
|