On 3/28/06, Sebastian Werner <[EMAIL PROTECTED]> wrote:
> BJörn Lindqvist schrieb:
> >> "append" is just an addition to the array object of javascript made by
> >> qooxdoo. Could you be so nice and tell us another name?
> >
> > push? :)
>
> Remember that "push" is already used. Push add seperate items and
> doesn't merge the full content of another array.

I see. How about "extend" then? The reason why "append" might need a
renaming is because in Python (and other languages) "append" mean add
one item. In python, "extend" means append all the items of the array
in the argument to the array itself.

[1, 2, 3].append(['a', 'b']);

Does the array become?

[1, 2, 3, ['a', 'b']]

or

[1, 2, 3, 'a', 'b']

?

--
mvh Björn


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to