IT lexicon › Programming › Self

Self

Programming På svenska → Updated: 2026-11-12

Prototype-based language from Sun Microsystems, 1987. A radical alternative to class-based OOP where all objects are copies of other objects.

Self eliminated the distinction between class and instance. Inheritance happens by cloning an existing object and modifying it. It was a revelatory idea: why need two levels when you can have one? Programming in Self requires a complete mental shift, but the language was groundbreaking for its JIT compilation (each method got its own specialized code) and influenced later languages—most notably JavaScript, which took prototypes' DNA and ran it around the world.

← Back to the lexicon