Re: [PHP-DEV] [Discussion] Implicitly backed enums

2024-05-25 Thread Tim Düsterhus
Hi On 5/23/24 20:57, Bilge wrote: Fair enough; I think we've somewhat moved on from the initial suggestion of implicitly backed enums, towards implicit values for string enums (for those names without explicitly defined values). What is your opinion on this alternative approach? Generally not

Re: [PHP-DEV] RFC [Discussion]: array_find

2024-05-25 Thread Tim Düsterhus
Hi On 5/25/24 01:19, Valentin Udaltsov wrote: Have you considered renaming `$callback` parameter to `$predicate`? I always considered "callback" to be a very generic word. Predicate, on the contrary, implies accepting a value and returning a bool. For an entirely new API I would agree. But fo