These are chat archives for ramda/ramda

Oct 2018
Asad Saeeduddin
Oct 30 2018 15:25
I don't get why writing things as functions instead of using built-in operators like ? : would be cleaner. ? : is effectively a binary function, it's just infix applied. There's many other such constructs in pure functional languages which are infix-applied for readability and convenience
Asad Saeeduddin
Oct 30 2018 15:30
I'm not sure if equals is doing some magic here, but isn't const f = x => y => equals(true, y) ? x : y just &&?
const f_ = x => y => y && x
Brad Compton (he/him)
Oct 30 2018 15:45
&& will catch anything truthy, while equals(true) will only catch the literal boolean true