News for hackers. Stuff that matters.
Re:PHP 8 in 8 code blocks by GrumpyNl on Saturday May 16, 2020 @05:56AM (#23202062)
Whats the big advantage of Trailing commas are allowed in parameter lists? I never liked it, if its not there, dont do a kind of pseudo initialization.
Re:PHP 8 in 8 code blocks by owenmelbz on Sunday May 17, 2020 @07:59AM (#23211368)
Maybe not for single line calls, but for multi-line helps with some readability and git diffs.

$result = thing(

    $arg1,

    $arg2,

    $arg3,
);
Re:PHP 8 in 8 code blocks by brendt_gd on Saturday May 16, 2020 @09:55AM (#23203392)
It makes diffs easier to read, and ensures you never forget to add one of you'd add a new line to the parameter list.
Re:PHP 8 in 8 code blocks by sadeghpm on Saturday May 16, 2020 @11:10AM (#23203993)
One of important weakness of php language is loosing generic type, I think this is one of most important feature we need in php.
Re:PHP 8 in 8 code blocks by nana- on Saturday May 16, 2020 @05:44AM (#23201996)
Why a new major version?
Re:PHP 8 in 8 code blocks by brendt_gd on Saturday May 16, 2020 @09:54AM (#23203386)
It's the standard release cycle of PHP: https://www.php.net/supported-versions.php