On Fri, 29 May 2015 12:00 pm, Steven D'Aprano wrote:

[...]
> in a language where classes are 
> themselves values, there is no reason why a class must be instantiated,
> particularly if you're only using a single instance of the class. Anyone
> ever come across a named design pattern that involves using classes
> directly without instantiating them?
> 
> I'm basically looking for a less inelegant term for "instanceless class"
> -- not so much a singleton as a zeroton.

C# has these, and calls them static classes.

https://msdn.microsoft.com/en-us/library/79b3xss3%28v=vs.100%29.aspx




-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to