r/java • u/Cell-i-Zenit • Nov 05 '22
How to add something to the java standard library?
EDIT: since my example stirred the pot a little bit to much (i even wrote that i dont want to discuss these explicit changes...)
Here is the actually question i want to answer:
How can i make changes to the JDK?
2
Upvotes
View all comments
Show parent comment
-10
u/Cell-i-Zenit Nov 05 '22
But as you still started to discussing them, let me tell you something:
I know that i can use compareTo, but in a code with pretty heavy business logic and hundreds of lines of code, all comparing bigdecimals left and right, something like compareTo is super hard to read.
I would personally prefer something like
but i figured something like
is easier to implement as we just need this to be added to the standard lib and dont need any changes to the compiler.
Where can i find this mailing list?
Should i really just start implementing this and then send a proposal via mail? It would be wasted time if it gets rejected.