On May 31, 2012, at 2:27 AM, Andreas Rossberg wrote:

> On 31 May 2012 00:31, David Herman <[email protected]> wrote:
>> OK, but that begs the question. The problem is that your "might" test is 
>> neither sound (as Allen pointed out) nor complete (as I pointed out) for 
>> "can." What guarantee are you trying to provide? What do you mean by "might?"
> 
> +1
> 
> I think the function that some here seem to want is neither possible,
> nor desirable. Whether a function is looking at 'this' or not (or how
> it was constructed that way, i.e. syntactically, or using 'bind') is
> pretty much an implementation detail, and it should not be possible to
> _sense_ it. A function is free to _document_ it as part of its
> contract, though.


I'm not sure if the last couple sentences above is referring to the suggest 
isBound methods nor not.  Certainly whether a function is defined as an arrow 
function or created using the bind function isn't an objective fact that can be 
encoded in the function's representation when it is created.

Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to