eclipse / eclipse-collections

Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.
http://www.eclipse.org/collections
2.39k stars 593 forks source link

Change math function factories to use Math.*Exact methods. #1601

Closed motlin closed 1 month ago

mohrezaei commented 1 month ago

This is a significant change to behavior. What is the reason this is being done? Nobody is going around replacing all the + signs in their code to Math.addExact. Shouldn't there be variant functions for these, just as there are in core java? Has the performance difference been measured? What about usecases that require wrapping behavior (e.g. simple hashing)?