In his (great) series of books “You don't know JS", Kyle Simpson states that dynamic scope and this
mecanism are "near cousin", he also says that :
"the
this
mechanism is kind of like dynamic scope." (YDKJS, Scope and Closure, Appendix A)
What is preventing him from saying that this
is plain and simple dynamic scoping ?
Also, in the book "this & Object Prototypes", also part of the series YDKJS, as far as I can say, Kyle is not mentioning once dynamic scope while discussing how this
is working, so I am a bit surprised why he decided to not go further in the analogy... Does anyone have an idea why ?
Thanks