On Tue, Mar 2, 2010 at 12:27 AM, Jeppe Nejsum Madsen wrote:
> David Pollak writes:
>
> > If the mechanism was something more along the lines of:
> >
> > display name calculator: (Mapper[_], Locale, String) => Box[String] // we
> > could use Lift's factory mechanism here
>
> I'm completely blank a
If the mechanism was something more along the lines of:
display name calculator: (Mapper[_], Locale, String) => Box[String] // we
could use Lift's factory mechanism here
Then you have lots of room to keep the current implementation as the default
if there is no actual name calculated. Further, t
Jim Barrows writes:
> My point was that you've moved the boilerplate, not eliminated it. If what
> you suggest was in place you'd have to add 100+ properties in a file.
I'm not sure if we're wandering out on a philosophical tangent here, but
would genuinely like to hear if you have better solut
On Mon, Mar 1, 2010 at 12:54 PM, Jeppe Nejsum Madsen wrote:
> Jim Barrows writes:
>
> > On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen >wrote:
> >
> >> Hi,
> >>
> >> In the interest of cutting boilerplate from mapped objects, I would
> >> like to get the display name from a property file.
>
Jim Barrows writes:
> On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen wrote:
>
>> Hi,
>>
>> In the interest of cutting boilerplate from mapped objects, I would
>> like to get the display name from a property file.
>>
>
> So your replacing code boilerplate with property file boilerplate? The
David Pollak writes:
> On Mon, Mar 1, 2010 at 8:27 AM, Jim Barrows wrote:
>
>>
>> On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen wrote:
>>
>>> Hi,
>>>
>>> In the interest of cutting boilerplate from mapped objects, I would
>>> like to get the display name from a property file.
>>>
>>
>> So
On Mon, Mar 1, 2010 at 8:27 AM, Jim Barrows wrote:
>
> On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen wrote:
>
>> Hi,
>>
>> In the interest of cutting boilerplate from mapped objects, I would
>> like to get the display name from a property file.
>>
>
> So your replacing code boilerplate with
On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen wrote:
> Hi,
>
> In the interest of cutting boilerplate from mapped objects, I would
> like to get the display name from a property file.
>
So your replacing code boilerplate with property file boilerplate? The
boilerplate has to go somewhere,
Hi,
In the interest of cutting boilerplate from mapped objects, I would
like to get the display name from a property file.
So I was thinking that it would be an idea to add a
MapperRules.nameToDisplayName such as this
var nameToDisplayName: ( Mapper[_], String) = (_,name) => name
This would al