1. A method of facilitating declaration of a class or function using a programming language that is not a class-based object-oriented programming (OOP) language, comprising: receiving at a processor a call to a function that is configured to cause a definition of a new function, defined using the programming language, wherein a syntax associated with a declaration of the function uses a name that is a near variant of the reserved word “class”; and defining programmatically, in response to the call, the new function that: inherits from, if applicable, the methods and variables of a parent function designated, using a syntax that is a near variant of a corresponding class-based OOP syntax, to be a super class of the new function; and includes one or more methods, variables, or both designated, using a syntax that is a near variant of a corresponding class-based OOP syntax, to be implemented by the new function; wherein the function that users a name that is a near variant of the reserved word “class” returns a stub object; wherein the stub object includes a method configured to cause the methods and variables of the parent function to be inherited by the new function.
6. A method as recited in claim 1 , wherein the programming language comprises the JavaScript™ language.