[Tutor] Re: List Comprehensions again
alan.gauld@bt.com
alan.gauld@bt.com
Mon, 28 Jan 2002 14:15:14 -0000
> > lambda is most often used in conjunction with map/filter/reduce, and
> > the whole lot comes from the "functional" programming style
> Is this style of programming different from "procedural" and "object
> oriented" programming styles?
There are several styles. The most common are procedural
(often also called imperative) and object oriented.
Others include declarative(as personified by Prolog)
and functional.
My web tutor provides a brief description of FP with
examples in Python. For me the main feature of FP is
that every statement is an expression that has a value.
Thus the print statement in python is not a valid FP
construct - it has no value. Lisp, Haskell, Erlang
and a few others use FP heavily.
Alan g.
Author of the 'Learning to Program' web site
http://www.freenetpages.co.uk/hp/alan.gauld