Hacker News new | ask | show | jobs
by samfisher83 3562 days ago
It seemed like whole way classes are defined in java script seems a little hackish. Functions and are first class object, but using a function to make a class is just weird when coming from a java or c++ background. Are there any programming languages that have this method of making classes?
1 comments

It's called Prototype-Based Inheritance, as opposed to Class-Based. Another such language is Self.

http://stackoverflow.com/questions/816071/prototype-based-vs...