Observing whether a function is strict

Claude Pache claude.pache at gmail.com
Thu May 26 08:06:01 UTC 2016


> Le 26 mai 2016 à 09:57, Mathias Bynens <mathiasb at opera.com> a écrit :
> 
> On Thu, May 26, 2016 at 9:48 AM, Claude Pache <claude.pache at gmail.com> wrote:
>> I was wondering whether there is a way to observe whether a given random function is strict (or sloppy, or neither).
>> […] Are there other ways? (If not, I find it somewhat unfortunate that only such nonstandard features leak this information.)
> 
> I smell a proposal for `Reflect.isStrict` in the making…

(To be clear, I would be strongly opposed to such a proposal: Being strict or not is an implementation detail that the consumer need not know.)

—Claude



More information about the es-discuss mailing list