in reply to Indispensible language features

I'm surprised no-one mentioned this.

Without it, dispatch tables that curry their arguments are almost impossible.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^2: Indispensible language features
by stvn (Monsignor) on Jul 01, 2004 at 17:09 UTC

    I think "Anonymous functions" are implied by the OP in "Lambdas (basically, anonymous closures)".

    P.S. - I love a good Curried Dispatch Table too, with a little Mango Chuntney and fresh Roti,... yummy ;-)

    -stvn
      I think "Anonymous functions" are implied by the OP in "Lambdas (basically, anonymous closures)".

      "Implied"?

      Yeah, I probably should have been more clear. When I mentioned "lambdas", I meant "anonymous functions, closures, and combinations thereof".

      Incidentally, one thing that I'm really starting to like about Haskell is its ability to seamlessly manipulate functions via currying, composition, and higher-order functions like flip. I'll try to come up with some examples that are neither trivial nor obscure for the next part of my Haskell intro.

      --
      F o x t r o t U n i f o r m
      Found a typo in this node? /msg me
      % man 3 strfry

        Incidentally, one thing that I'm really starting to like about Haskell is its ability to seamlessly manipulate functions via currying, composition, and higher-order functions like flip.

        You may want to also take a look at Standard ML as well, it has many similarities to Haskell, but is less strict about being functional (meaning, you can do do imperitive programming with it if you really want too).

        -stvn