Prototype and Objects
And we were pushing it as a little brother to Java, as a complementary language like Visual Basic was to C++ in Microsoft’s language families at the time.
I remember hearing about a talk by Dave Thomas where he bemoaned the overuse of classes in object oriented programming. Is object oriented programming about objects or classes? The way most people are taught is class oriented.
This is something worth keeping in mind when we talk about prototype-based programming. It’s not always easy for those trained in classical object oriented programming to see the distinction between the two.
The History of Prototype Programming
You can learn about Self in the Language Reference.
make function to construct and return objects.
Trends in Prototype-based Languages
If you look through the popular prototype languages you’ll notice a few common themes:
- Simple syntax
- Inspired by languages like Scheme
- Small, efficient VM