It depends. A functional approach is extremely awesome to have available, and it's always going to be an optimizer's best friend, but sometimes a given algorithm is much clearer to describe using imperative style.
That's why I'm a huge fan of the modern dynamic languages like Perl, Python, and company. They have all the fun stuff from functional programming (e.g. closures), with less of the mess.
Discussion (3)
Someone that works is better than something that tells someone to work. ;)
In the words of Beck, "Hell Yes"
It depends. A functional approach is extremely awesome to have available, and it's always going to be an optimizer's best friend, but sometimes a given algorithm is much clearer to describe using imperative style.
That's why I'm a huge fan of the modern dynamic languages like Perl, Python, and company. They have all the fun stuff from functional programming (e.g. closures), with less of the mess.