On Wed, 2002-10-30 at 07:54, Geir Magnusson Jr. wrote:
> On 10/30/02 7:50 AM, "James Taylor" <[EMAIL PROTECTED]> wrote:
>
> > On Wed, 2002-10-30 at 00:29, Cort Schaefer wrote:
> >> I think I would like this (what Gier said, with the comma).
> >>
> >> #set($mymap = [ {"foo", $a}, {"bar", "c"} ]
> >
> > I considered this, but in my opinion it is overly verbose (especially
> > when you can't have newlines inside #set)
>
> You are screwed either way. A few extra characters separating won't make a
> difference.
Fair enough. I still like the other syntax better because it is very
common, and the form below implies something else to me. Seeing that I
immediately think I should be able to do:
[ { 'a', 'b', 'c' }, { 'a', 'b', 'c' } ]
Where ':' (or even the dreaded =>) more clearly implies mapping.
Is there a language that uses a syntax like the below?
> I'll add the newlines-in-set at the same time, because if you cant do
>
>
> #set ($foo = [
> {'a','b'}
> {'c','b'}
> {'d','b'}
> {'e','b'}
> ])
>
> It's going to suck
>
>
> --
> Geir Magnusson Jr.
> [EMAIL PROTECTED] +1-203-355-2219 (w)
> Adeptra Inc. +1-203-247-1713 (m)
>
>
>
> --
> To unsubscribe, e-mail: <mailto:velocity-dev-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:velocity-dev-help@;jakarta.apache.org>
>
--
To unsubscribe, e-mail: <mailto:velocity-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-dev-help@;jakarta.apache.org>