ühikobjektid
Ühikobjektid, often translated as unit objects or measure objects, are a fundamental concept in many programming languages, particularly those with a strong object-oriented paradigm. They represent a single, indivisible unit of something, analogous to a unit of measurement in the physical world. For instance, a 'meter' could be represented as a ühikobjekt, encapsulating its value and the concept of being a meter.
The primary purpose of ühikobjektid is to enhance type safety and reduce errors by enforcing that operations
These objects typically hold a numerical value and information about their associated unit. They can be designed