August 2017
Intermediate to advanced
440 pages
10h
English
Sometimes we need to define a function that is always throwing exceptions (never terminating normally). Two real-life use cases are:
For these kinds of situation, there is a special class called Nothing. The Nothing class is an empty type (uninhabited type), meaning it has no instances. A function that has Nothing return type won't return anything and it ...
Read now
Unlock full access