Term “data property” – ambiguous?

Dmitry A. Soshnikov dmitry.soshnikov at gmail.com
Thu Jul 21 08:48:29 PDT 2011


On 21.07.2011 19:10, Axel Rauschmayer wrote:
> Function-valued data properties = methods
> Non-function-valued data properties = ?
>

Just properties. A "method" is just a `sounding sugar` for 
function-valued properties in this case.

Dmitry.

> [[[Sent from a mobile device. Please forgive brevity and typos.]]]
>
> Dr. Axel Rauschmayer
> axel at rauschma.de
> Home: http://rauschma.de
> Blog: http://2ality.com
>
> On 21.07.2011, at 16:54, Brendan Eich<brendan at mozilla.com>  wrote:
>
>> On Jul 21, 2011, at 3:09 AM, Axel Rauschmayer wrote:
>>
>>> Compare:
>>>
>>> (1) named data property versus named accessor property versus internal property.
>>> (2) data property versus method
>>>
>>> Thus, “data property” seems to be ambiguous.
>> ECMA-262 is not ambiguous. A method is a data property. Pretending otherwise (see ECMA-357) is folly.
>>
>> /be
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss



More information about the es-discuss mailing list