Re:Why I still recommend Julia
by oivey on Sunday June 26, 2022 @12:16PM
(#31885254)
You could do something like this:
That's cumbersome, but a macro could make it less annoying.
[ Parent
| on HN ]
That is not a full solution to the problem of detecting untested types. What if "plus_one" works for Int, Float32, etc. but not with MyNumber, all of which would dispatch to "plus_one(::Number)".