You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2003/10/23 16:03:07 UTC

Map patch in

I put in the patch from James for the Map support.  Give it a whirl.

-- 
Geir Magnusson Jr                                   203-247-1713(m)
geirm@optonline.net 
                                  


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: Map patch in

Posted by "Daniel L. Rall" <dl...@finemaltcoding.com>.
Nathan Bubna wrote:
> Claude Brisson said:
> ...
> 
>> Remark : the current map syntax is not ok, since there is no way to
> 
> disinguish an empty map and an empty array
> 
>> current syntax : #set( $map = ["key1" : " value1", $key2 : $value2] )
>>
>> I thought we were going to use { } (how do you call them in english ?
> 
> "curly braces" or something no ?)

Yup, that's it.

> d'oh.  beat me to the question...
> 
> anyway, i remember discussing this concern, but i can't remember a conclusion.
> {} sounds fine to me.

I'm in favor of the Map patch, but I also prefer the curly braces 
(Python-esque!).  Square braces could be confused with the list notation.


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: Map patch in

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
done.  And fixed 'banana' too

On Thursday, October 23, 2003, at 11:20 AM, Nathan Bubna wrote:

> Claude Brisson said:
> ...
>>  Remark : the current map syntax is not ok, since there is no way to
> disinguish an empty map and an empty array
>>
>>  current syntax : #set( $map = ["key1" : " value1", $key2 : $value2] )
>>
>>  I thought we were going to use { } (how do you call them in english ?
> "curly braces" or something no ?)
>
> d'oh.  beat me to the question...
>
> anyway, i remember discussing this concern, but i can't remember a 
> conclusion.
> {} sounds fine to me.
>
> Nathan Bubna
> nathan@esha.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geirm@optonline.net


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: Map patch in

Posted by Nathan Bubna <na...@esha.com>.
Claude Brisson said:
...
>  Remark : the current map syntax is not ok, since there is no way to
disinguish an empty map and an empty array
>
>  current syntax : #set( $map = ["key1" : " value1", $key2 : $value2] )
>
>  I thought we were going to use { } (how do you call them in english ?
"curly braces" or something no ?)

d'oh.  beat me to the question...

anyway, i remember discussing this concern, but i can't remember a conclusion.
{} sounds fine to me.

Nathan Bubna
nathan@esha.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: Map patch in

Posted by Claude Brisson <cl...@savoirweb.com>.
(Why the hell did this mail go to the users list ?)

Congrats, you are really back ! :-)
 
 Remark : the current map syntax is not ok, since there is no way to disinguish an empty map and an empty array 
 
 current syntax : #set( $map = ["key1" : " value1", $key2 : $value2] )
 
 I thought we were going to use { } (how do you call them in english ? "curly braces" or something no ?)
 
 CloD
 
> ----- Original Message ----- 
> From: "Geir Magnusson Jr." <ge...@optonline.net>
> To: "Velocity Developer's List List" <ve...@jakarta.apache.org>; "Velocity List" <ve...@jakarta.apache.org>
> Sent: jeudi 23 octobre 2003 16:03
> Subject: Map patch in
> 
> 
> > I put in the patch from James for the Map support.  Give it a whirl.
> > 
> > -- 
> > Geir Magnusson Jr                                   203-247-1713(m)
> > geirm@optonline.net 
> >                                   
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: Map patch in

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On Thursday, October 23, 2003, at 10:31 AM, Claude Brisson wrote:

> Congrats, you are really back ! :-)
>
> Remark : the current map syntax is not ok, since there is no way to 
> disinguish an empty map and an empty array

That's true.  I didn't think of that.

>
> current syntax : #set( $map = ["key1" : " value1", $key2 : $value2] )
>
> I thought we were going to use { } (how do you call them in english ? 
> "curly braces" or something no ?)
>

yes.

Curly braces it is then.

> CloD
>
> ----- Original Message -----
> From: "Geir Magnusson Jr." <ge...@optonline.net>
> To: "Velocity Developer's List List" 
> <ve...@jakarta.apache.org>; "Velocity List" 
> <ve...@jakarta.apache.org>
> Sent: jeudi 23 octobre 2003 16:03
> Subject: Map patch in
>
>
>> I put in the patch from James for the Map support.  Give it a whirl.
>>
>> -- 
>> Geir Magnusson Jr                                   203-247-1713(m)
>> geirm@optonline.net
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geirm@optonline.net


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Map patch in

Posted by Claude Brisson <cl...@savoirweb.com>.
Congrats, you are really back ! :-)

Remark : the current map syntax is not ok, since there is no way to disinguish an empty map and an empty array 

current syntax : #set( $map = ["key1" : " value1", $key2 : $value2] )

I thought we were going to use { } (how do you call them in english ? "curly braces" or something no ?)

CloD

----- Original Message ----- 
From: "Geir Magnusson Jr." <ge...@optonline.net>
To: "Velocity Developer's List List" <ve...@jakarta.apache.org>; "Velocity List" <ve...@jakarta.apache.org>
Sent: jeudi 23 octobre 2003 16:03
Subject: Map patch in


> I put in the patch from James for the Map support.  Give it a whirl.
> 
> -- 
> Geir Magnusson Jr                                   203-247-1713(m)
> geirm@optonline.net 
>                                   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org