3 ms·
C# has something similar, but uses the existing lambda syntax, with "=>" to the left of the body or expression, e.g. int AddOne(int x) => x + 1; or void SetX
by SideburnsOfDoom 3y ago
C# has something similar, but uses the existing lambda syntax, with "=>" to the left of the body or expression, e.g.
int AddOne(int x) => x + 1;
or
void SetXToZero() => x = 0;
- polygamous_bat 3y agoExactly what I am talking about when I say use some other unambiguous token. = is so incredibly overused in a programming language, why give it even more jobs?