Hi
On 11/9/25 18:54, Edmond Dantes wrote:
My main point was something entirely different.
If the tool chosen to solve the problem is not well suited, then no
matter what methods are used to avoid mistakes,
it turns into an ongoing struggle that only adds complexity and
increases the chance of error.
Virtually every (design) decision to make is a trade-off.
> I only gave one of many examples that will inevitably occur if you
> rely on reference counting.
And therefore making generic claims of “many problems” without
specifying them is not conductive to a discussion to figure out:
- If the stated problems are a problem in practice or if they are mostly
theoretical.
- Possible solutions to the problems (such as the “WeakReference
capturing of arguments”).
- If the described problem even exists or if it is based on a
misunderstanding of either the RFC or PHP's existing behavior.
Best regards
Tim Düsterhus