Hi

On 19.04.24 21:20, Joshua Rüsweg wrote:
I definitely see the point where there is an advantage to having two separate methods and can definitely understand that it is easier for developers to understand the control flow without evaluating the parameters.

I'm unsure if that's really necessary though, because basically it's probably not necessary to directly see what exactly the function returns. Perhaps there will be another opinion on this in an email in the next few days.

Now that I've thought about it for a few days, it's really better that the whole thing is broken down into two methods. I have adjusted the RFC accordingly. The RFC contains now two separat functions `array_find` and `array_find_key`.

Cheers

Josh

Reply via email to