|
|
Subscribe / Log in / New account

A PHP syntax for discardable assignments

A PHP syntax for discardable assignments

[Development] Posted Oct 14, 2020 19:05 UTC (Wed) by coogle

Recently, John Bafford revived a years-long conversation on expanding the syntax of the PHP foreach statement to include iterating solely over keys. Bafford, who wrote a patch and request for comments (RFC) on the matter back in 2016, hopes to update his work and convince the community to adopt the abbreviated syntax in PHP 8.1. The community took Bafford's general idea and expanded it into other areas of the language.

Full Story (comments: 10)


Copyright © 2020, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds