selfnames
Selfnames are identifiers that explicitly reference the entity that bears them, allowing an object, function, variable, or other symbol to denote itself by name within its own definition or execution context. The concept appears in programming language design, formal semantics, and linguistic theory, where it is used to describe self‑referential naming mechanisms. In object‑oriented languages, a selfname often corresponds to a special variable such as this, self, or the class name, which enables methods to access their own attributes or invoke other methods of the same instance. Functional languages may provide selfnames through recursive binding forms like letrec, where a function’s name is bound within its own body.
The term has also been adopted in metadata systems, where resources may include a self‑link, a URL
Uses of selfnames include enabling encapsulation, supporting recursion, and simplifying code readability by making self‑references explicit.