[Baypiggies] Everything Your Professor Failed to Tell You About Functional Programming

Ilia Iourovitski iiourov at yahoo.com
Wed Feb 1 00:04:27 CET 2006

In Java land those Monads called interceptors

public String invoke() throws Exception {
        if (executed) {
            throw new IllegalStateException("Action has already executed");

        if (interceptors.hasNext()) {
            Interceptor interceptor = (Interceptor) interceptors.next();
            result = interceptor.intercept(this);
        } else {
            result = action.execute();
            executed = true;

        return result;

Shannon -jj Behrens <jjinux at gmail.com> wrote: On 1/31/06, Danny Yoo  wrote:
> On Tue, 31 Jan 2006, Shannon -jj Behrens wrote:
> > I wrote an article for "Linux Journal" called "Everything Your Professor
> > Failed to Tell You About Functional Programming".  It's mainly about
> > Haskell, but I thought I'd post it here because a) it's a fun read b) a
> > few of the examples are in Python.  I remain a Python fan(atic).
> > Hopefully some of you will enjoy the article.
> Thanks for writing this article!  It looks nice and meaty, and I've always
> wanted to learn more about monads.
> (Quick note on the reference to NULL in SQL; C.J. Date definitely doesn't
> like NULL at all; his O'Reilly book "Database in Depth" says that NULLs
> break the relational model and the relational algebra; the violations that
> NULL presents in SQL makes the algebra nonsensical.  So in a sense, NULLs
> do cause his his universe to come crashing down.  *grin*)

Nice ;) hahahaha

Thanks a lot for the feedback!

Baypiggies mailing list
Baypiggies at python.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/baypiggies/attachments/20060131/65f0fbff/attachment.htm 

More information about the Baypiggies mailing list