I imagine the symmetry argument applies to hasOwn as well. ________________________________ From: Domenic Denicola<mailto:[email protected]> Sent: 1/3/2014 11:17 To: Tom Van Cutsem<mailto:[email protected]> Cc: [email protected]<mailto:[email protected]> Subject: RE: Reflect.* naming: defineProperty, deleteProperty vs. get, has, set?
Can we change get, set, and has then? ________________________________ From: Tom Van Cutsem<mailto:[email protected]> Sent: 1/3/2014 10:49 To: Domenic Denicola<mailto:[email protected]> Cc: [email protected]<mailto:[email protected]> Subject: Re: Reflect.* naming: defineProperty, deleteProperty vs. get, has, set? 'deleteProperty' was in fact originally called 'delete'. We changed it to avoid a conflict with the keyword, which occurs when importing the function (recall that the Reflect.* methods are actually functions exported from a module). While ES5 made it possible to use keywords as properties, you obviously still can't use keywords as ordinary function names. defineProperty is by symmetry with the existing Object.defineProperty built-in. I believe the symmetry is more important than a shorter name. Cheers, Tom 2014/1/3 Domenic Denicola <[email protected]<mailto:[email protected]>> It seems like it would be nicer to change the former to define and delete, respectively? _______________________________________________ es-discuss mailing list [email protected]<mailto:[email protected]> https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

