Re: Javascript Namespace
Lasse Reichstein Nielsen wrote on 23 jun 2008 in comp.lang.javas cript:
Lasse, we are speaking in different worlds.
You are starting with what the original JS writing fathers or the ECMA
writers wanted it to be.
I am starting with what I would like to be a language of just objects
with it's properties and methods. An intellectual challenge.
All thsi started in this thread because Pointed put my Ears up on the
idea,
that a function must be nothing more or less than a method of an object,
usually the root object [my wording], and a variable a property of the
same. [while in fact they all thre are just pointers to those three, and
only those pointers 'have' scope limitations.]
The internal implementation, nor the primordial ideas of the writing
fathers come into play with my idealistic 'scope', where there is no
place for things like a "lexical" scope [what is that anyway?], and there
is no place to call anything global which is only the root of all
objects, as global is about scope, so only about pointers.
Probably even object hierarchy is only about pointers, I have to think
that through.
The present differences of use of object, object.method[function] and
object.property[variable] would be finished.
Defaulting would be only a matter of coding ease, not linked to any
internal substance but to scope limitations.
Oh what a wonderful objective Pointed pointer world it would be,
where not only the Ears, but the whole JS is "doing it with" pointers.
<http://www.audiobookso nline.com/media/1572701439.jpg>
;-)
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Lasse Reichstein Nielsen wrote on 23 jun 2008 in comp.lang.javas cript:
In Javascript it is a lexical scope.
You are starting with what the original JS writing fathers or the ECMA
writers wanted it to be.
I am starting with what I would like to be a language of just objects
with it's properties and methods. An intellectual challenge.
All thsi started in this thread because Pointed put my Ears up on the
idea,
that a function must be nothing more or less than a method of an object,
usually the root object [my wording], and a variable a property of the
same. [while in fact they all thre are just pointers to those three, and
only those pointers 'have' scope limitations.]
The internal implementation, nor the primordial ideas of the writing
fathers come into play with my idealistic 'scope', where there is no
place for things like a "lexical" scope [what is that anyway?], and there
is no place to call anything global which is only the root of all
objects, as global is about scope, so only about pointers.
Probably even object hierarchy is only about pointers, I have to think
that through.
The present differences of use of object, object.method[function] and
object.property[variable] would be finished.
Defaulting would be only a matter of coding ease, not linked to any
internal substance but to scope limitations.
Oh what a wonderful objective Pointed pointer world it would be,
where not only the Ears, but the whole JS is "doing it with" pointers.
<http://www.audiobookso nline.com/media/1572701439.jpg>
;-)
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Comment