Only PHP would dare to use + for function composition.
@leah I try hard to avoid PHP if I can *sigh*
@leah today I was marvelling at ocaml using @ for list concatenation, while @@ is for (low precedence) function application.
@sanityinc but @@ was added 20 years later.
@leah when was its counterpart, |>, added relative to that? It's upsetting that they're not symmetrical
@sanityinc At the same time, but I don't think <| is a better name, hrm.
@sanityinc aha:
"It's because of the associativity necessary in the grammar. @ is used to start infix functions with right association, while | is used for left."
@leah aaaargh
@sanityinc It greatly simplifies the parser I guess.
@leah in 2025 I can happily get behind simplifying anything
@leah certainly the googly eyes of @@ are delightful in their own right
@leah im sorry ?
PHP: rfc:function-composition

@SRAZKVT "The use of + does naturally invite the question of whether other arithmetic operators (-, *, /) would have a useful meaning." 😱
@leah function composition when function decomposition comes in
@SRAZKVT / will be used for Quotient Types in PHP 11.42
@SRAZKVT @leah isnt that called currying?
@4censord @leah currying isn't the opposite of composition
@leah weren't they proud of not using + for concatenating strings?
@leah i love that >> is ruled out in order to leave open the possibility of using >>= for monadic bind
@leah ...because it's completely commutative that, yeah