Deep cloning objects defined by JSON.

Rick Waldron waldron.rick at gmail.com
Sun Jan 22 17:37:00 PST 2012


On Sun, Jan 22, 2012 at 8:13 PM, Wes Garland <wes at page.ca> wrote:

> On 22 January 2012 16:05, Jake Verbaten <raynos2 at gmail.com> wrote:
>
>> The idea here is that methods do not belong in data structures (clone
>> should be to efficiently clone data).
>>
>
> Method vs. Property is a false dichotomy in functional languages, IMO.  A
> method is merely a property whose value is a function instead of some other
> type.
>

Right, as it is defined in 4.3.27 (see: http://es5.github.com/#x4.3.27) and
they shouldn't be lost as a result of a copy/cloning process.




>
> --
> Wesley W. Garland
> Director, Product Development
> PageMail, Inc.
> +1 613 542 2787 x 102
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120122/f680c80a/attachment.html>


More information about the es-discuss mailing list