Thanks for the feedback Dmitry. It's definitely for novices, as I think currently I'm only one or two steps up from a novice :)
I've added a link to your name binding section and your evaulation strategies article as I think they're really useful for people wanting to know more about the theory. (I had read your evaulation stragies article before but it's only re-reading now that I've properly grokked it.) Thanks a lot! Nick On 27 December 2010 14:21, Dmitry A. Soshnikov <[email protected]>wrote: > Hehe, I like those examples with cats ;) > > Technically, you describe all correct. The article is quite good for > novices. Though usually exactly `by-value` is used (regarding ES) for both > cases (objects, primitives): in case of object the address is passed as a > value (your "wire" in the article). > > I also recommend to think about this strategy of passing/assignment objects > as not `by-reference` but as `by-pointer` (from C/C++ viewpoint). You used > terms "assignment" and "mutation", though usually for the first term stands > "rebinding", since this topic is related to _name bindings_ (which in turn > are related with lexical environments). In my recent article I talked about > name bindings and in particular rebinding and mutation operations related > with them: > http://dmitrysoshnikov.com/ecmascript/es5-chapter-3-1-lexical-environments-common-theory/#name-binding > > Also, if you're interested, there is my old article on evaluation > strategies, where the same topic is discussed in detail: > http://dmitrysoshnikov.com/ecmascript/chapter-8-evaluation-strategy/ This > abstract `by-pointer` can be also named as `by-sharing` (I like this naming > since it allows to see the exact difference in theoretical by-reference and > by-value strategies). > > Dmitry. > > > On 27.12.2010 15:13, Nick Morgan wrote: > > Hi guys > > I've written a new blog post about something that's been bothering me for > a while - the distinction between pass-by-reference and pass-by-value. > > > http://skilldrick.co.uk/2010/12/clearing-up-the-confusion-around-javascript-references/ > > I'd like to know if anything either doesn't make sense or is just plain > wrong. > > Cheers! > -- > Nick Morgan > http://skilldrick.co.uk > @skilldrick <http://twitter.com/skilldrick> > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected]<jsmentors%[email protected]> > -- Nick Morgan http://skilldrick.co.uk @skilldrick <http://twitter.com/skilldrick> -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
