top | item 23201841 PHP 8 in 8 code blocks 5 points| brendt_gd | 5 years ago |stitcher.io 6 comments order hn newest [+] [-] GrumpyNl|5 years ago|reply 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. [+] [-] owenmelbz|5 years ago|reply Maybe not for single line calls, but for multi-line helps with some readability and git diffs.$result = thing( $arg1, $arg2, $arg3, ); [+] [-] brendt_gd|5 years ago|reply 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. [+] [-] sadeghpm|5 years ago|reply One of important weakness of php language is loosing generic type, I think this is one of most important feature we need in php. [+] [-] nana-|5 years ago|reply Why a new major version? [+] [-] brendt_gd|5 years ago|reply It's the standard release cycle of PHP: https://www.php.net/supported-versions.php
[+] [-] GrumpyNl|5 years ago|reply 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. [+] [-] owenmelbz|5 years ago|reply Maybe not for single line calls, but for multi-line helps with some readability and git diffs.$result = thing( $arg1, $arg2, $arg3, ); [+] [-] brendt_gd|5 years ago|reply 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.
[+] [-] owenmelbz|5 years ago|reply Maybe not for single line calls, but for multi-line helps with some readability and git diffs.$result = thing( $arg1, $arg2, $arg3, );
[+] [-] brendt_gd|5 years ago|reply 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.
[+] [-] sadeghpm|5 years ago|reply One of important weakness of php language is loosing generic type, I think this is one of most important feature we need in php.
[+] [-] nana-|5 years ago|reply Why a new major version? [+] [-] brendt_gd|5 years ago|reply It's the standard release cycle of PHP: https://www.php.net/supported-versions.php
[+] [-] brendt_gd|5 years ago|reply It's the standard release cycle of PHP: https://www.php.net/supported-versions.php
[+] [-] GrumpyNl|5 years ago|reply
[+] [-] owenmelbz|5 years ago|reply
$result = thing(
);[+] [-] brendt_gd|5 years ago|reply
[+] [-] sadeghpm|5 years ago|reply
[+] [-] nana-|5 years ago|reply
[+] [-] brendt_gd|5 years ago|reply