[Lift] Re: MappedString holding null

2009-10-15 Thread David Pollak
On Wed, Oct 14, 2009 at 8:40 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: On Wed, Oct 14, 2009 at 11:08 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Oct 14, 2009 at 7:45 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: 1. Why does MappedString have members such

[Lift] Re: MappedString holding null

2009-10-14 Thread David Pollak
On Wed, Oct 14, 2009 at 7:45 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: 1. Why does MappedString have members such as nonNull(in: String) which don't depend on the MappedString's state? Shouldn't they be in a singleton somewhere? Maybe they should be, but are they hurting anything

[Lift] Re: MappedString holding null

2009-10-14 Thread Ross Mellgren
I've been using implicit extensions for this kind of thing, most recently expanded error handling via Box. Like this: implicit def mappedStringToMappedStringExtension(ms: MappedString): MappedStringExtension = MappedStringExtension(ms) case class MappedStringExtension(mappedString:

[Lift] Re: MappedString holding null

2009-10-14 Thread Naftoli Gugenheim
Good point, thanks. On Wed, Oct 14, 2009 at 11:15 PM, Ross Mellgren dri...@gmail.com wrote: I've been using implicit extensions for this kind of thing, most recently expanded error handling via Box. Like this: implicit def mappedStringToMappedStringExtension(ms: MappedString):

[Lift] Re: MappedString holding null

2009-10-14 Thread Naftoli Gugenheim
On Wed, Oct 14, 2009 at 11:08 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Oct 14, 2009 at 7:45 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: 1. Why does MappedString have members such as nonNull(in: String) which don't depend on the MappedString's state? Shouldn't