Functional Programming Series

3 views
Skip to first unread message

Matt Follett

unread,
Aug 30, 2010, 12:07:30 AM8/30/10
to stl...@googlegroups.com
Hey all,

I'm starting a new series about functional programming in Perl. It is going to start by covering the same topics I covered in my YAPC and STL-PM talk, Introduction to Functional Programming in Perl. After that it'll expand out into other concepts. I've posted week 1 here, which covers the concept of anonymous functions in Perl:
http://mfollett.com/26878051

Weeks 2, 3, and 4 are already written and will cover closures, currying, and using functional programming to make dynamic dispatch tables. I wanted to do one a week though to give people time to read it and ask questions if they had any, and of course give me time to write it. There is an RSS feed available for the whole site, or I'll be updating the summary page with the links as the weeks role on:
http://mfollett.com/pages/functional-perl-series

Thanks,
Matt Follett

Bill Odom

unread,
Aug 30, 2010, 1:55:58 AM8/30/10
to stl...@googlegroups.com
On Sun, Aug 29, 2010 at 11:07 PM, Matt Follett <matt.f...@gmail.com> wrote:
>
> I'm starting a new series about functional programming in Perl.  It is
> going to start by covering the same topics I covered in my YAPC and
> STL-PM talk, Introduction to Functional Programming in Perl.  After
> that it'll expand out into other concepts.

Sweet!

Is this going to be all Perl 5, or will you work in some Perl 6 as
well? I know I'd love to see some compare-and-contrast as you go.

Bill

Matt Follett

unread,
Aug 30, 2010, 10:00:19 AM8/30/10
to stl...@googlegroups.com
On Aug 30, 2010, at 12:55 AM, Bill Odom wrote:

> Sweet!

thanks!

> Is this going to be all Perl 5, or will you work in some Perl 6 as
> well? I know I'd love to see some compare-and-contrast as you go.

No, this will be purely Perl 5. There are enough little differences and features in Perl 6 that I'd rather keep the two separate for ease of reading. I'll be doing Perl 6 posts later.

~Matt

Steven Lembark

unread,
Aug 30, 2010, 10:28:34 AM8/30/10
to stl...@googlegroups.com

Possibly useful example for anon-subs: Object::Trampoline.

This implements a well-defined pattern that isn't available
in any C++-derived languages; trivial in Perl, self, OLisp.

--
Steven Lembark 3646 Flora Pl
Workhorse Computing St Louis, MO 63110
lem...@wrkhors.com +1 888 359 3508

Matt Follett

unread,
Sep 2, 2010, 11:41:46 PM9/2/10
to stl...@googlegroups.com
On Aug 30, 2010, at 12:55 AM, Bill Odom wrote:

Is this going to be all Perl 5, or will you work in some Perl 6 as
well? I know I'd love to see some compare-and-contrast as you go.

This isn't quite what you were looking for, but it does mention an easy way to do a lambda to evaluate later:

Thanks,
Matt
Reply all
Reply to author
Forward
0 new messages