Re: Constant methods in Java

2022-02-02 Thread Aaron Scott-Boddendijk
understand the use-case for) can be trivially circumvented. -- Aaron Scott-Boddendijk On Thu, Feb 3, 2022 at 9:09 AM Raffaello Giulietti < raffaello.giulie...@gmail.com> wrote: > Hello, > > I don't get why the author of myMethod() would/should be interested in > forcin

Re: Proposal for new interface: TimeSource

2021-05-09 Thread Aaron Scott-Boddendijk
data-processing and simulation. A standard interface might also mean this makes its way into 1st-class testing framework parameterisation. -- Aaron Scott-Boddendijk On Fri, May 7, 2021 at 11:28 AM Stephen Colebourne wrote: > This is a proposal to add a new interface to java.time.* > > pu

Re: Why does Set.of disallow duplicate elements?

2021-02-01 Thread Aaron Scott-Boddendijk
s it mean that there's no copying occuring to make the list but it's even possible that JIT manages enough specialisation and inlining to elide the allocation entirely (though in practice this doesn't occur as often as we might like). -- Aaron Scott-Boddendijk On Mon, Feb 1, 202

Re: RFR: 8180352: Add Stream.toList() method

2020-11-03 Thread Aaron Scott-Boddendijk
sult? I suggest that's pretty hard to debate against given the risk of a mistake is an exception rather than bad data outcomes. Please don't blunt the tool to make it safer for children. -- Aaron Scott-Boddendijk On Wed, Nov 4, 2020 at 9:30 AM wrote: > > De: "Brian Goetz&q