by gmaster1440 · 2y ago · 0 comments
I think the term you mentioned was there at the start but has since been removed and React is licensed pure MIT since 2017.
They are everywhere in JavaScript and I couldn't imagine my day-to-day without them!
For a person with zero front-end knowledge, it's a game changer.
const f = (x, y) => {
const z = x + y;
const w = z * 2;
return z - w + x;
};
In Python, you cannot do this: f = (
lambda x, y:
z = x + y;
w = z * 2;
return z - w + x;
)
Instead, you need to pull it out into a def: def f(x, y):
z = x + y;
w = z * 2;
return z - w + x;
Sometimes, this is no big deal. But other times, it's damn annoying; the language forces you to lay out your code in a less intuitive way for no obvious benefit.FTFY.