Temperature units as abstract type - Abstract types - Haxe programming language cookbook
The following Celcius and Fahrenheit Abstract types are based on the underlying Float type, but sets the restriction that it can never hold values below absolute zero.
Temperature units as abstract type - Abstract types - Haxe programming language cookbook
The following Celcius and Fahrenheit Abstract types are based on the underlying Float type, but sets the restriction that it can never hold values below absolute zero.
https://code.haxe.org/category/abstract-types/temperature-units.html