Re: Arc challenge
Chris Zumbrunn <[email protected]> Sun, 3 Feb 2008 12:07:49 +0100
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <32915186.224541202036567813.JavaMail.root@engine234.deployzone.net> |
On Feb 3, 2008, at 1:09 , Joshua Paine wrote:
> Paul Graham has a little challenge to show off the terseness of his
> new
> Lisp dialect.
>
> Here's the original: <http://arclanguage.org/item?id=722>
> And here's my go with Helma: <http://arclanguage.org/item?id=1099>
>
> I did learn the difference between res.message and session.message in
> doing it.
Or even simpler:
res.write(
(session.message = req.data.say)
? <p><a href={this.href()}>click here</a></p>
: res.message
? <p>you said: {res.message}</p>
: <form method="post">
<input name="say"/>
<input type="submit"/>
</form>
)
Chris