There would be no type-safety issue or cast if it were implemented as a real division either, incidentally.
There is room to argue Div should not have been implemented at all on integral types (as in Haskell where integer division is a separate operation entirely), but that's a completely different issue.
There would be no type-safety issue or cast if it were implemented as a real division either, incidentally.
There is room to argue Div should not have been implemented at all on integral types (as in Haskell where integer division is a separate operation entirely), but that's a completely different issue.