I have
class Length is Measure export { ... }
I want synonyms that differ only in that the class name is different, I have tried this:
class Distance is Length is export {}
class Breadth is Length is export {}
class Width is Length is export {}
class Height is Length is export {}
class Depth is Length is export {}
This kind of works in that $distance ~~ Length, but I also want $length ~~ Distance.
Some kind or coercion would be desirable - eg $length.Distance ~~ Distance to discourage operations like $width = $height + $depth (ie you cannot always add lengths that point along different axes).
Maybe some class kind of := name binding, or a shorthand way to coerce NxN?
Any advice most gratefully received...