Post AwyIdURaCeElDpAqkC by [email protected] | |
More posts by [email protected] | |
Post #AwyIdULCaN8Iu2BknY by [email protected] | |
0 likes, 0 repeats | |
Only PHP would dare to use + for function composition. | |
Post #AwyIdURaCeElDpAqkC by [email protected] | |
0 likes, 0 repeats | |
@leah im sorry ? | |
Post #AwyIdUXbqF3dWVzf8a by [email protected] | |
0 likes, 0 repeats | |
@SRAZKVT https://wiki.php.net/rfc/function-composition | |
Post #AwyIdUehPsjFsVJKBk by [email protected] | |
0 likes, 0 repeats | |
@SRAZKVT "The use of + does naturally invite the question of whether other… | |
Post #AwyIdUkN4nGYA5xr1s by [email protected] | |
0 likes, 0 repeats | |
@leah function composition when function decomposition comes in | |
Post #AwyIdUpgl1WGQaS6Jk by [email protected] | |
0 likes, 0 repeats | |
@SRAZKVT / will be used for Quotient Types in PHP 11.42 | |
Post #AwyIe5MYwHCpiy6rYW by [email protected] | |
0 likes, 0 repeats | |
@leah today I was marvelling at ocaml using @ for list concatenation, while @@ … | |
Post #AwyIe5SaZs1i1evfwu by [email protected] | |
0 likes, 0 repeats | |
@sanityinc but @@ was added 20 years later. | |
Post #AwyIe5YGEmZ0JFaCn2 by [email protected] | |
0 likes, 0 repeats | |
@leah when was its counterpart, |>, added relative to that? It's upsetti… | |
Post #AwyIe5dZv0oiZk4S4u by [email protected] | |
0 likes, 0 repeats | |
@sanityinc At the same time, but I don't think <| is a better name, hrm. | |
Post #AwyIe5jxXHvAtX3Y1Y by [email protected] | |
0 likes, 0 repeats | |
@sanityinc aha:"It's because of the associativity necessary in the gra… | |
Post #AwyIe5pzAsk3CDsMPw by [email protected] | |
0 likes, 0 repeats | |
@leah aaaargh | |
Post #AwyIe5w0oTYvUuhAoK by [email protected] | |
0 likes, 0 repeats | |
@sanityinc It greatly simplifies the parser I guess. | |
Post #AwyIec8t48sJO6xuK0 by [email protected] | |
0 likes, 0 repeats | |
@leah in 2025 I can happily get behind simplifying anything | |
Post #AwyIeedRnUVb7THLEW by [email protected] | |
0 likes, 0 repeats | |
@leah but don’t you dare to append strings using + | |
Post #AwyIeejpPlc3RGGRBA by [email protected] | |
0 likes, 0 repeats | |
@janvhs More languages do this, but + for a non-commutative monoid operation is… | |
Post #AwyLddgs7kvXlK5WMq by [email protected] | |
0 likes, 0 repeats | |
@leah I try hard to avoid PHP if I can *sigh* | |
Post #AwyLfePqOkZyai5BgG by [email protected] | |
0 likes, 0 repeats | |
@SRAZKVT @leah isnt that called currying? | |
Post #AwyLhLRDvb4WJOXGuO by [email protected] | |
0 likes, 0 repeats | |
@leah ...because it's completely commutative that, yeah | |
Post #AwyLhj9Jlp0dqoLJKa by [email protected] | |
0 likes, 0 repeats | |
@leah closure++ next? | |
Post #AwyLhmL7uNEnkItHea by [email protected] | |
0 likes, 0 repeats | |
@leah certainly the googly eyes of @@ are delightful in their own right | |
Post #AwyLi8Z3HHRsfrZiPg by [email protected] | |
0 likes, 0 repeats | |
@leah i love that >> is ruled out in order to leave open the possibility … | |
Post #AwyLke1RHzFoon34gC by [email protected] | |
0 likes, 0 repeats | |
@leah my god | |
Post #AwyLkktXjk668KPMqO by [email protected] | |
0 likes, 0 repeats | |
@4censord @leah currying isn't the opposite of composition |