Should we stop writing functions?
… and use lambdas instead?
That is, instead of:
int sum(int a, int b) {
return a + b;
}
You’d write:
constexpr auto sum = [](int a, int b) -> int {
return a + b;
};
Hear me out.
…
Read this blog post at think-cell's developer blog. Subscribe there to stay up-to-date!