allen at wirfs-brock.com
Tue Aug 23 16:07:28 PDT 2011
On Aug 9, 2011, at 2:05 PM, Dmitry A. Soshnikov wrote:
> On 24.08.2011 0:39, Allen Wirfs-Brock wrote:
>> I'm don't really see the that they are needed enough to build these in when they can be synthesized pretty easily. What is the justification for these and not others such as getAccessorProperties, getDataProperties, getNonWritableProperties, etc.
> Maybe, why not? `Object.methods` is just standard in some languages (e.g. Ruby, `foo.instance_methods`). Yes, all of yours listed above could be either built-in or self-implemented, don't know how often they are needed IRL. This topic follows the recent near topic with doc-comments of functions. The same, playing with a new language in console it's the best just to type e.g. `foo.methods` (like in Ruby) and to see directly the list of methods to which the object responds. Besides, perhaps they can be used in other meta-level programming, but the initial idea seems studying the language in the console and playing with objects (not sure though whether it's a sound reason to be accepted for standardization).
More information about the es-discuss