[wp-trac] [WordPress Trac] #59777: WP admin : Use Yoda condition
WordPress Trac
noreply at wordpress.org
Wed Nov 1 14:04:00 UTC 2023
#59777: WP admin : Use Yoda condition
----------------------------+-------------------------------
Reporter: ashokrd2013 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 1.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by jrf):
Replying to [comment:2 jrf]:
> As for the compiler argument, this is one I've never heard before and
which I find surprising as these comparison operators are non-associative.
I'd be interested to read more about this.
To satisfy my own curiousity, I've checked in about this with a PHP Core
dev and the performance optimization claim has been debunked. It is just
not true.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59777#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list