343 karma · joined August 15, 2007
I do think the Object.getPrototypeOf approach is feasible for methods.
Beyond the need for calling the constructor (which I'm currently viewing it as an unnecessary hidrance [objects are already initialized]), Object.getPrototypeOf may provide a way out - but maybe not the way you intended. Have you considered it?
If you've made changes to your profile, you may force a refresh by pointing your browser to hackerhub.org/r/yourid.[edit:] Seems like rss, not atom feeds, are recognized.
What is no mistake is the refreshing change of view you get when you start embracing objects and prototypal inheritance. See for example the traits library[1, 2].
[3]: Is a cursory introduction to Self, with another points example :)
[4] Contains an example of my own (heavily inspired by Self and Io). I have stitched together various internet sources to come up with `clone', an operator assisting in differential inheritance.
[1]: http://traitsjs.org/
[2]: http://code.google.com/p/es-lab/source/browse/trunk/src/trai...
[1]: https://developer.mozilla.org/en/Differential_inheritance_in...
for (var i = 0; i < 10; i += 1)
eval("function function_" + i + "() { print('i am ' + i); }");
for (i = 0; i < 10; i += 1)
this['function_' + i]();
but it seems like eval is not supported yet - i guess for good reasons.OTOH, it seems like something is clearly wrong here since, we are having a tough time being professional and working with the current crop of languages, tools, technologies, etc and in the same time, fully expressing our vision while enjoining our work.
How can you get to a good design without some plan? Could someone shed some light?