Void is a singleton type with one instance. This instance of Void() also called nothing . Keep in mind that nothing === Void()
You can handle it just like any other value.
Returned by a bunch of functions like println .
You can check if anything returns nothing - that is, an instance of type Void .
By
julia> println()===nothing true
For type stability, a method should not return nothing part of the time and something part of the time. in this case, instead, it should return a Nullable , as a rule.
source share