[web-devel] Hamlet variable interpolation syntax [previously: A few questions about Yesod]

Felipe Almeida Lessa felipe.lessa at gmail.com
Fri Dec 31 01:58:13 CET 2010

On Thu, Dec 30, 2010 at 6:45 PM, Michael Snoyman <michael at snoyman.com> wrote:
> I'm beginning to lean that direction as well. As far as forall/maybe
> syntax, I propose adding a comma:
> $forall foo bar baz, bin

What about something like

$forall bin <- foo bar baz

We could even support pattern matches, which would be very useful on some cases:

$forall Person name age address <- people

I know, I know, bad example, it's just to get the idea across. =)



More information about the web-devel mailing list