Comments on Sept Meeting Notes

Rick Waldron waldron.rick at gmail.com
Thu Sep 26 15:43:54 PDT 2013


On Thu, Sep 26, 2013 at 6:39 PM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote:

>
> On Sep 26, 2013, at 3:30 PM, Rick Waldron wrote:
>
>
>
>
> On Thu, Sep 26, 2013 at 6:20 PM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote:
>
>> ...
>>
>>
>> Maybe the exception could be enumerability exception could be concise
>> methods with string literal property names that do not parse as
>> IdentifierName.
>>
>
> I'm trying to understand if there is something I'm missing about "string
> literal property names that do not parse as IdentifierName" that is somehow
> different from what exists today. What happens here:
>
> var o = {
>   "@concise"() {}
> };
>
>
> non-estensible
>
>
> o["@method"] = function() {};
>
>
> extensible
>
>
> jQuery.extend(Some.prototype, o);
>
>
> copies "@method"
> doesn't copy "@concise"
>

That's what I was afraid of... Ignoring any exceptions for concise methods,
this breaks backward compatibility. Not for the author of the object, but
for code that is expected to behave a certain way when it receives an
object.

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130926/1acdfa7b/attachment.html>


More information about the es-discuss mailing list