If you have this invalid code:
someThing.user.obj.openOr(...).firstName.is
Maybe there is a way to do this right to cover the possibility that
the user is Nil, but if not, how about this:
someThing.user.obj.openOr("no name")(_.firstName.is)
Not sure if that's exact scala syntax, but the block would not be
executed if the default value was returned.
Is there a better way already?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---