in reply to Really Writing Object Oriented Perl

I doubt everyone or even just a sizable group of people here come from the FUNCTIONAL programming background. PROCEDURAL more likely. Please don't confuse the two.

  • Comment on Re: Really Writing Object Oriented Perl

Replies are listed 'Best First'.
Re^2: Really Writing Object Oriented Perl
by kyle (Abbot) on Jun 03, 2007 at 13:53 UTC

    Just to clarify Jenda's good point, functional programming is a style that avoids state (i.e., variables) and centers around evaluating the value of functions. LISP is a functional language. Procedural programming is written as a list of instructions (segregated into procedures) for the computer to follow, changing state as it goes. C is a an example.

      LISP is a functional language

      Probably more accurate to say that Lisp can be written in a functional style. You also get OO Lisp, and the usual load of procedural code. Much like Perl in fact :-)

      For functional languages look at things like Haskell.

Re^2: Really Writing Object Oriented Perl
by aufflick (Deacon) on Jun 04, 2007 at 03:47 UTC
    Yes, 'functional' is an unfortunately overloaded word.

    FWIW when I used the word functional, I meant functional programming a la lisp etc.

    For an introduction to functional style programming in perl, take a look at http://perldesignpatterns.com/?FunctionalProgramming