W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

[Bug 22509] Some way to express array as readonly and fixed length

From: <bugzilla@jessica.w3.org>
Date: Sat, 29 Jun 2013 02:08:42 +0000
To: public-script-coord@w3.org
Message-ID: <bug-22509-3890-UkQl0f638D@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22509

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> ---
frozen-ness is not the right thing.

The point of readonly or fixed-length arrays is to return an arraylike object
to a caller with the following properties:

1)  The caller can read things from the arraylike.
2)  The caller cannot write things to the arraylike.
3)  The _callee_ can write things to the arraylike as needed.

Most cases where you'd not want the callee to later modify the object just want
pass-by-value semantics and actual JS arrays.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Saturday, 29 June 2013 02:08:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:49 UTC