Tom Van Cutsem (2014-01-03T15:49:13.000Z)
'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 <domenic at domenicdenicola.com>

>  It seems like it would be nicer to change the former to define and
> delete, respectively?
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140103/ae72d5ba/attachment-0001.html>
domenic at domenicdenicola.com (2014-01-09T16:34:09.982Z)
`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.
domenic at domenicdenicola.com (2014-01-06T14:10:01.867Z)
'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.