Why do I need to use the unit type in F# if it supports the void type?
问题 I read this MSDN article: Unit Type (F#) ...The unit type is a type that indicates the absence of a specific value; the unit type has only a single value, which acts as a placeholder when no other value exists or is needed ... The unit type resembles the void type in languages such as C# and C++... So... Alright, I understand, that the unit type is such a type, which has only a single value () . But I have some questions: Why is it needed? When is it needed? I don't understand why not to use