Overload window methods in Gatherers with step size
openjdk.ruwen.reddig at mailbox.org
openjdk.ruwen.reddig at mailbox.org
Mon Mar 25 20:50:26 UTC 2024
Hello,
thanks for the amazing presentations during the Java 22 release stream.
I highly appreciated the new JEP 461 (https://openjdk.org/jeps/461), especially the windowing functions windowFixed and windowSliding.
I would like to propose to overload both methods, so they accept the step size as an additional parameter:
- windowFixed(int windowSize, int stepSize)
- windowSliding(int windowSize, int stepSize)
This would make the existing functionality more flexible without introducing much additional concepts to learn/understand.
That being said, I read https://mail.openjdk.org/pipermail/core-libs-dev/2024-January/117718.html and agree that the initial set of functions should be kept small. So looking forward how more experienced developers are gauging the trade-offs.
Best reagards
Ruwen Reddig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240325/e9ac5de4/attachment.htm>
More information about the core-libs-dev
mailing list