HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[code.haxe.org] Abstract types - Temperature units as abstract type #82

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

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

JonasSonn commented 3 years ago

Pretty cool(hehe) example