Elektrine lite

← Feed

@timwolla@phpc.social

2026-09-15 16:40 UTC

@nyamsprod@phpc.social @derickr@phpc.social For PHP 8.7, the focus will likely be on adding Instant and Clock. API design wise I would probably follow the Pareto principle for Duration and keep it lean, with userland helpers adding convenience functionality around the native class as a strong foundation: API design for PHP’s stdlib is much more expensive than for userland and the costs of getting it wrong are even larger. The only thing I would add would be ->divideInto(), because that's complicated to get right.

Replies (2)

  • @timwolla@phpc.social 2026-09-22 14:32

    @nyamsprod@phpc.social @derickr@phpc.social https://news-web.php.net/php.internals/132588

    Open ##4806255

  • @nyamsprod@phpc.social 2026-09-15 19:29

    @timwolla@phpc.social @derickr@phpc.social agree that a userland package has less constraint and can explore idea that may or may not land on core, even if the ideas are sound and correct.

    Open ##5205023