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:39:46 +0000
To: public-script-coord@w3.org
Message-ID: <bug-22509-3890-4vrcQx1GY5@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22509

--- Comment #4 from Rick Waldron <waldron.rick@gmail.com> ---
(In reply to comment #3)
> 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.

Got it, thanks for the clarification

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

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