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

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