Re: Feedback for nullc Idea
From: Robert Chapin Date: Tue, 25 Mar 2025 22:53:49 +0000 Subject: Re: Feedback for nullc Idea References: 1 2 3 4 5 6 7 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
On 3/25/2025 4:11 PM, Rowan Tommins [IMSoP] wrote:Writing coalesce($foo, 0) or ($foo ?? 0) is a small cost when writing the code to save cost every time anyone reads it.I see, part of the concern is just avoiding implicit type coercion. Yes, that would be an understandable reason to require a second value, which might limit the overall flexibility of the feature.
Thread (10 messages)
« previous | php.internals (#126946) | next » |
---|