Re: [PHP-DEV] [RFC] Duration class

[email protected] (Tim Düsterhus) Sat, 4 Jul 2026 00:32:01 +0200
Newsgroups php.internals
Message-ID <[email protected]>
Hi

On 7/3/26 22:48, Marc B. wrote:
>> Given the small remaining time until the freeze, I'm going to “close
>> out” this thread, but it will definitely serve as a useful reference
>> in the future. Thanks again!
> 
> Please don't rush on it - surely the current benefit is not worth it.

The paragraph you are replying to is referring to Paul’s suggestion of 
allowing negative scalars in the constructors, a limitation that can be 
lifted in the future without introducing a breaking change.

------

Besides being confident in the basic design of the class, which is much 
older than the RFC - I first discussed the idea with Derick on PHPDay 
this year, and had a design lying around for even longer - I also 
consider the benefit of having a better “Io\Poll” API to be worth trying 
to hit a deadline.

Best regards
Tim Düsterhus