[Helma-user] Arc challenge

Chris Zumbrunn chris at zumbrunn.com
Sun Feb 3 12:07:49 CET 2008


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



More information about the Helma-user mailing list