Skip to content
#externals

Search

55 results · page 1 of 3

  1. 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 …

  2. 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 …

  3. 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 …

  4. [email protected] ·

    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 …

  5. 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 …

  6. 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 …

  7. 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 …

  8. 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 …

  9. 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 …

  10. 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 …

  11. 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 …

  12. [email protected] ·

    … 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 …

  13. 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 …

  14. 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 …

  15. [email protected] ·

    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 …

  16. 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 …

  17. 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 …

  18. [email protected] ·

    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 …

  19. 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 …

  20. 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 …