Search
55 results · page 1 of 3
-
Larry Garfield ·
Let me try to rephrase Larry's idea. The pipe operator made its way into PHP from functional programming languages, where immutability is a key aspect of the language's behavior. In those languages, it enables code that is …
-
Vadim Dvorovenko ·
Let me try to rephrase Larry's idea. The pipe operator made its way into PHP from functional programming languages, where immutability is a key aspect of the language's behavior. In those languages, it enables code that is both …
-
Vadim Dvorovenko ·
Hello, everyone I would like to present my new RFC proposing a new left-to-right assignment operator based on the pipe operator. https://wiki.php.net/rfc/left-to-right-assignment-operator The idea was originally discussed at https …
-
Hi I'd like to open discussion on my (first!) RFC for the pipe assignment operator (|>=): https://wiki.php.net/rfc/pipe_assignment_operator It adds a compound assignment form of the pipe operator, so that $x |>= callable is shorthand …
-
Caleb White ·
Hi internals, I'd like to open discussion on my (first!) RFC for the pipe assignment operator (|>=): https://wiki.php.net/rfc/pipe_assignment_operator It adds a compound assignment form of the pipe operator, so that $x |>= callable …
-
Nick Sdot ·
Hi internals, I'd like to open discussion on my (first!) RFC for the pipe assignment operator (|>=): https://wiki.php.net/rfc/pipe_assignment_operator It adds a compound assignment form of the pipe operator, so that $x |>= callable …
-
Larry Garfield ·
Hi internals, I'd like to open discussion on my (first!) RFC for the pipe assignment operator (|>=): https://wiki.php.net/rfc/pipe_assignment_operator It adds a compound assignment form of the pipe operator, so that $x |>= callable …
-
Caleb White ·
Hi internals, I'd like to open discussion on my (first!) RFC for the pipe assignment operator (|>=): https://wiki.php.net/rfc/pipe_assignment_operator It adds a compound assignment form of the pipe operator, so that $x |>= callable is …
-
Nick Sdot ·
Hey Caleb, Hi internals, I'd like to open discussion on my (first!) RFC for the pipe assignment operator (|>=): https://wiki.php.net/rfc/pipe_assignment_operator It adds a compound assignment form of the pipe operator, so that $x …
-
Vadim Dvorovenko ·
… because I haven't received enough positive feedback on the first RFC in the chain: https://wiki.php.net/rfc/pipe_to_return. You can see another drafts in github. The main idea, is that pipe operator reverses traditional funcation …
-
Caleb White ·
… drafts in github. Hi Vadim, Thanks for the pointer, interesting to see that the idea of combining assignment with the pipe operator has come up before. Great minds! I did take a look at your pipe-to-return RFC and …
-
… scope would ever be added. It's also not uncommon for them to show |> as ▷, because |> is established as a pipe operator. Long story short: =|>over |>= IMO has a lot of appeal. I disagree. It looks more like a special …
-
Bob Weinand ·
… scope would ever be added. It's also not uncommon for them to show |> as ▷, because |> is established as a pipe operator. Long story short: =|>over |>= IMO has a lot of appeal. I disagree. It looks more like a special …
-
Caleb White ·
Hi folks, I just opened voting on the "Pipe Assignment Operator" RFC. RFC: https://wiki.php.net/rfc/pipe_assignment_operator Discussion: https://news-web.php.net/php.internals/131849 There is one primary vote requiring a 2/3 majority …
-
Hi I do intend to try to get this into 8.6. Here's the schedule I'm planning: Intent to vote: within the next day or so Open voting: Monday July 28th ~04:30 UTC Voting closes: Monday August …
-
Caleb White ·
Hi Tim, Thank you for all your help, patience, and guidance throughout this process, especially as a first-time RFC author. And I really appreciate you going to bat for this RFC in the thread---thanks again. I do …
-
Caleb White ·
Thank you. The clarification makes sense to me and I don't have further comments on the RFC. As indicated in https://news-web.php.net/php.internals/132049, your RFC could still be included in PHP 8.6 …
-
Hi So the behavior is consistent with ??=. Bob, your observation about optimizing intermediate chain fetches with ad-hoc references is interesting, but that would be an improvement to all compound assignment operators, not something specific to |>=. I've updated the …
-
Caleb White ·
I just have one more question to the RFC author, which I see in the implementation, but the RFC is not explicitly noting: Is it intentional that fetching is repeated? It will literally desugar $a->b->c |>= strtolower(...); to …
-
Caleb White ·
Yes, I have carefully studied the RFCs and understand that they deal with completely different syntax and use cases. However, both proposals advocate for adding and using the |>= operator. Attempting to use it for both scenarios would result in …