PHP 8.5 alpha 1 is available for download
1–10 of 19 posts
Re: PHP 8.5 alpha 1 is available for download
#2Re: PHP 8.5 alpha 1 is available for download
#3Re: PHP 8.5 alpha 1 is available for download
#4Re: PHP 8.5 alpha 1 is available for download
#58.5 notably includes the new pipe operator: https://stitcher.io/blog/pipe-operator-in-php-85
Re: PHP 8.5 alpha 1 is available for download
#68.5 notably includes the new pipe operator: https://stitcher.io/blog/pipe-operator-in-php-85
Re: PHP 8.5 alpha 1 is available for download
#78.5 notably includes the new pipe operator: https://stitcher.io/blog/pipe-operator-in-php-85
I feel like if you treat temporary variables as documentation they feel less icky. All these examples with the pipeline operator cause way more mental overhead than reading temporary variable names.
Re: PHP 8.5 alpha 1 is available for download
#8Re: PHP 8.5 alpha 1 is available for download
#98.5 notably includes the new pipe operator: https://stitcher.io/blog/pipe-operator-in-php-85
Obligatory: Raku supports pipe in both directions, passing input as the last parameter instead of requiring the function to take only one parameter. It also has a shorthand:
my @array = ; my @final-array = @array.unique.sort.reverse; say @final-array;
Re: PHP 8.5 alpha 1 is available for download
#108.5 notably includes the new pipe operator: https://stitcher.io/blog/pipe-operator-in-php-85
Kind of a clunky and verbose syntax at the moment. I wonder what languages get pipe syntax right? Obligatory: Raku supports pipe in both directions, passing input as the last parameter instead of requiring the function to take only one parameter. It also has a shorthand: my @array = ; my @final-array = @array.unique.sort.reverse; say @final-array;
$foo |> str_replace('hello', 'hi', ?);