functional programming

Moshe Zadka moshez at math.huji.ac.il
Tue Feb 22 10:15:59 EST 2000


On 22 Feb 2000, [ISO-8859-1] Franחois Pinard wrote:

> For me, functional programming is a way of writing algorithms in which
> you have an important stress on functions as primary objects, dynamically
> building functions from more elementary ones, inter-relating functions,
> and often using them to represent partial solutions.

Functional programming has a very clear definition: no side
effects. Iterating explicitly means "with side effects." I'm not saying
one style is better then the other, but you *can't* program functionally
in Python. I had to get over it, and learn to write fibonaci with a while
loop, when I first got to Python.


--
Moshe Zadka <mzadka at geocities.com>. 
INTERNET: Learn what you know.
Share what you don't.





More information about the Python-list mailing list