Call by binding [was Re: [Tutor] beginning to code]
Marko Rauhamaa
marko at pacujo.net
Tue Sep 26 04:35:54 EDT 2017
Chris Angelico <rosuav at gmail.com>:
> I've explained Python's (or JavaScript's, since they're the same)
> object model to a number of novice programmers without any
> difficulties, without talking about pointers or invisible values or
> any of that junk. There are just two things to explain: the concept of
> names referring to objects, and variable scope.
The JavaScript spec wrt assignment etc is actually a bit difficult to
understand: <URL: https://www.ecma-international.org/ecma-262/5.1/>.
Scheme, which also shares the same object model with Python, has a very
down-to-earth specification that uses the term "location:"
<URL: http://schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-6.ht
ml#%_sec_3.4>
Marko
More information about the Python-list
mailing list