Message from JavaScript discussions

September 2018

— 

const something = x => {
if (x) {
return a(x);
} else {
return b(x);
}
};


Vs:
const something = ifElse(
identity,
a,
b);

Message permanent page

— 

Jezuz. and what about the overhead? i mean, if you really like functions, why do you apply them everywhere?

— Some kind of api

— It's where the context of functional stuff

— Human input

— I think you like to build expressions with words, that's why

— Of course

— Not noticeable

— Besides, I have a compiler for crazy optimizations

— JavaScript compiler to binary?

— "Binary"

— Wut