You can `{.borrow.}` operators for your distinct types, see 
<https://nim-lang.org/docs/manual.html#types-distinct-type> (when it gets to 
"The pragma borrow has been designed to solve this problem; in principle, it 
generates the above trivial implementations").

Reply via email to