Singleton: Difference between revisions

From Helpful
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 2: Line 2:


<!--
<!--
A singleton is something there is exactly one of.
A [[singleton]] is something there is exactly one of.
 




Line 9: Line 8:


In a language, it tends to refer to some special-cased types and/or values.
In a language, it tends to refer to some special-cased types and/or values.
: For example, values like None/null may be their own type and have just one singleton value.
: ...or, if you're going to get technical, most [[primitives types]],
:: and OO languages will make a point of this somewhere in their specs.


For example, values like None/null may be their own type and have just one singleton value.


-->
-->

Latest revision as of 14:14, 3 March 2024