[Lift] Re: non-Lazy evaluation of bind FuncBindParam functions?

2010-03-10 Thread Stuart Roebuck
Thanks for the feedback. I'm not trying to be awkward here, just trying to get my head around everything. Oh, and I completely agree with the risks of premature optimisation. Thanks, Stuart On Mar 10, 5:03 pm, David Pollak wrote: > On Wed, Mar 10, 2010 at 7:22 AM, Stuart Roebuck > wrote: > >

Re: [Lift] Re: non-Lazy evaluation of bind FuncBindParam functions?

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 7:22 AM, Stuart Roebuck wrote: > Okay, so I now understand what is happening a little better. > > When I saw a construct like: > > bind("example",xhtml, >"first_name" -> SHtml.text(user.first_name, user.first_name(_)), >"last_name" -> SHtml.text(user.last_name, use

Re: [Lift] Re: non-Lazy evaluation of bind FuncBindParam functions?

2010-03-10 Thread Ross Mellgren
The simple way of using FuncBindParam is: "first_name" -> { (ns: NodeSeq) => SHtml.text(...) } That will only generate the text if the tag first_name appears. -Ross On Mar 10, 2010, at 10:22 AM, Stuart Roebuck wrote: > Okay, so I now understand what is happening a little better. > > When I sa

[Lift] Re: non-Lazy evaluation of bind FuncBindParam functions?

2010-03-10 Thread Stuart Roebuck
Okay, so I now understand what is happening a little better. When I saw a construct like: bind("example",xhtml, "first_name" -> SHtml.text(user.first_name, user.first_name(_)), "last_name" -> SHtml.text(user.last_name, user.last_name(_)) it reminded me of a match with cases and my assu