Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: The first lambda language to go mainstream ?

by morgon (Priest)
on Aug 11, 2010 at 15:06 UTC ( [id://854408]=note: print w/replies, xml ) Need Help??


in reply to The first lambda language to go mainstream ?

There is nothing in JS which couldn't equally be done in Perl with anonymous subs and coderefs. Isn't Perl5 older?

And does not C have function-pointers and is it not even older then Perl?

Who cares?

For me to call JavaScript a "lambda language" is just as ridiculous as calling Perl a "lambda language".

Apart from that Douglas Crockford's book is good though...

  • Comment on Re: The first lambda language to go mainstream ?

Replies are listed 'Best First'.
Re^2: The first lambda language to go mainstream ?
by ssandv (Hermit) on Aug 11, 2010 at 17:26 UTC

    Some searching leads one to the detail that C doesn't have true first-class functions because they aren't nestable, although GCC supports them as an extension, and also because pointer-defined functions don't close over their free variables.

      You can argue that C does not have first-class functions and I would agree - that was not my point.

      The point I was trying to make above is that (in my opinion) having first-class functions is not enough for a language to be called a "lambda language" (meaning functional language).

      Otherwise practically every current language would be a "lambda language" and the term would not be very useful.

      And so I would argue that the statement about JS being the first mainsteam lambda langues is simply wrong and the question weather it was predated by Perl irrelevant.

        > Otherwise practically every current language would be a "lambda language" and the term would not be very useful.

        so whats your definition of a lambda language?

        Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://854408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found