Re:Concurrency in Julia
by the_svd_doctor on Tuesday November 09, 2021 @11:33PM
(#29171120)
I guess he does not want to be able to add Apples to Oranges.
[ Parent
| on HN ]
Re:Concurrency in Julia
by ted_dunning on Wednesday November 10, 2021 @12:55PM
(#29177820)
That's interesting.
But Julia really does that already. Check out Unitful.jl
The approach might work but I don't think in general it actually solves the same problem. While I used integer-like things in the example, it wasn't actually important.
It could be strings (think Apple_Description and Orange_Description) or even more complex type from a library (maybe something like Apple_Throw_Plot and Orange_Throw_Plot).