Open magol opened 7 years ago
In functional-style languages, it often means the unit type (and the sole element of that type), equivalent to an empty tuple. In some languages like Python it can mean either one.
But what should a ()
ligature look like if there is one?
@dhouck, just make it look better :) Also relevant for [] and {}
In C inspired languages (such as C#, C++, Java) the notation () is used with functions that have no parameters.
for example