|
|
|
|
|
by zwaps
1827 days ago
|
|
But this is precisely what Julia allows you to do. Your function may be written for numeric, and you use your favorite kind exclusively. Now person B from this thread comes along, using both ints and floats. Well guess what, your package still works seamlessly. And where it doesn't, it must be due to a particularity that you yourself don't care about. In any case, the function can then be extended without namespace issues.
In other languages, one would have to rewrite your package since you are using an obscure numeric type which others don't agree with. Consider for example how people have used solvers for differential equations with entirely new datatypes, simply because the compatibility comes for free. I think it's really neat! I think it's great! |
|