It is basically what you want to do, but already done. You can sum int and 
float mixed and it works, after importing it `echo 1.0 + 2` works. You can see 
the source code 
<https://github.com/nim-lang/Nim/blob/devel/lib/pure/lenientops.nim>

Reply via email to