3 ms·
> It took a few months to get my head around it, but once you do, it becomes so obviously simple and easy that you start thinking in it directly This is exactl
by runeks 9y ago
> It took a few months to get my head around it, but once you do, it becomes so obviously simple and easy that you start thinking in it directly
This is exactly where functional programming shines, in my opinion. It gives you the ability to write your program logic directly, rather than use mechanical constructs (e.g. for loops with indexes) that behave as some logical construct.
The “for(i=0;...)” construct is something I’d give to a machine for the purpose of execution, whereas the logical description is how I’d explain it to a human — and the former can be deduced from the latter.