in reply to Re: Functional programming with Perl
in thread Functional programming with Perl

Lisp's general model is functional. It makes it easier for you to write in functional style, and is lots of fun. To be more practical, it allows assignments and other side effects, but their usage is discouraged, except for in some specially defined cases (global counters, for instance, which would be quite tedious w/o side effects).

Abelson and Sussman's book is terrific. As a part of a course, I did quite a lot of exercises in it, in Scheme and it was great.

  • Comment on Re: Re: Functional programming with Perl

Replies are listed 'Best First'.
Re: Functional programming with Perl
by Dominus (Parson) on Dec 02, 2002 at 15:42 UTC
    Says spurperl:
    Lisp's general model is functional.
    It isn't.
    it allows assignments and other side effects, but their usage is discouraged
    Perhaps by you, but not by any serious Lisp programmers that I know. What do you think CLOS is for? Do you think that it was invented so that its use could be discouraged? I suggest you read Common Lisp: The Language by Steele or On Lisp by Graham, and perhaps revise your opinion.

    --
    Mark Dominus
    Perl Paraphernalia