Prototype-based programming

John J. Lee jjl at pobox.com
Thu Dec 11 18:33:28 EST 2003


hungjunglu at yahoo.com (Hung Jung Lu) writes:
[...]
> I got looking into PBP because Python starts to look evil when you use
> descriptors, metaclasses, etc. And that's not just Python: the
> fundamentals of most well-known languages are getting more and more
> complicated. The current programming world reminds me of the situation
> of the time when RISC came up against CISC. I mean, it's OK for a lot
> of additional features to be built on top of the fundamentals, but
> nowadays the fundamentals themselves are getting too complicated. Is

In principle, I agree, though I can't say it's ever actually bothered
me in practice with Python.


> it time to take a break and say: "there is gotta be a simpler way!"?
[...]

JavaScript (no, don't run away!) is actually quite similar to Python
and is prototype-based.

JavaScript (ECMAScript, now) has a global object (that happens to be
window in web browsers) that functions rather like the global
namespace in other languages.


John




More information about the Python-list mailing list