The Mapbender project switched to using {} and [] this year; we save about
1KB of bandwidth while Mapbender loads. It may not be much but it sure is
something.
Cheers
Christoph
On Wed, July 25, 2007 9:36 am, Pierre GIRAUD wrote:
> I'm also in favor of {}.
> I do think that javascript developpers and of course OL developpers
> know this syntax well and already use it.
>
> Pierre
>
> On 7/24/07, Erik Uzureau <[EMAIL PROTECTED]> wrote:
>> For the sake of argument, yes they are completely equivalent
>> *functionaly*, but in terms of readability, new Object() and new
>> Array() I think have the upper hand.
>>
>> I'm not really emotional one way or the other though. I'm much more in
>> favor of just being standard about things.
>>
>>
>>
>> On 7/24/07, Jeff Yutzler <[EMAIL PROTECTED]> wrote:
>> > I vote for {} and [] rather than new Object() and new Array().
>> > They are completely equivalent so I see no reason not to use the
>> shorter
>> > one.
>> >
>> > [EMAIL PROTECTED] wrote:
>> > > Message: 1
>> > > Date: Tue, 24 Jul 2007 14:43:09 -0500
>> > > From: "Erik Uzureau" <[EMAIL PROTECTED]>
>> > > Subject: [OpenLayers-Dev] {} or new Object()
>> > > To: "[EMAIL PROTECTED]" <[email protected]>
>> > > Message-ID:
>> > > <[EMAIL PROTECTED]>
>> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>> > >
>> > > Paul has just gone vocal with his preference for using {} instead of
>> > > "new Object()" for the instantantiation of a new object.
>> > >
>> > > We do not currently have any policy for this. Do people feel
>> strongly
>> > > one way or the other?
>> > >
>> > > Obviously it's not a big issue, but if there is broad support for
>> > > doing it one way or the other, we might as well attempt to
>> standardize
>> > > a bit.
>> > >
>> > > Erik
>> > >
>> > >
>> >
>> > _______________________________________________
>> > Dev mailing list
>> > [email protected]
>> > http://openlayers.org/mailman/listinfo/dev
>> >
>> >
>> >
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/dev
>>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/dev
>
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev