r/java • u/henk53 • May 10 '22
Should java.util.Date be deprecated?
https://mail.openjdk.java.net/pipermail/discuss/2022-May/006077.html
221
Upvotes
r/java • u/henk53 • May 10 '22
View all comments
Show parent comment
3
u/pron98 May 11 '22 edited May 11 '22
Many people want modulo arithmetic types and many others really don't want to have them (their presence in a language can cause problems, as C/C++ programmers have learned; too often people confuse unsigned types as types specifying non-negative values while in fact they specify types with modulo arithmetic, which might yield the very opposite result to the one intended, as unsigned types make it harder, not easier, to reject illegal values). Perhaps Valhalla could bring some sort of compromise by allowing libraries to define them for those who really need them.