3 ms·
> What happened to good old fashioned function foo (int bar) :) It doesn't let you do things like: "for (int bar) and 0 <= bar <= 3" while the "when" guard co
by rdtsc 9y ago
> What happened to good old fashioned function foo (int bar) :)
It doesn't let you do things like:
"for (int bar) and 0 <= bar <= 3" while the "when" guard construct can do that. Moreover it lets you have multiple function heads as well. So you can defined multiple for (int bar) with different conditions. Or even a "foo" with a string bar.