[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

Re: Functional programming

William James

5/22/2015 7:22:00 AM

Erik Naggum wrote:

> * Eugene Zaikonnikov
> | You're right, but Scheme is a bit more elegant at function composition.
> | ((foo a b) c d) looks more natural than (funcall (foo a b) c d), though
> | essentially it's the same.
>
> that's no more than syntactic artificial sweetener at best. while it may
> look cute to the uninitiate, the decision not to have FUNCALL means you
> can't actually make indirect functions calls, as in the following very
> useful idiom to process a list of functions.
>
> (mapcar #'funcall <list-of-functions> ...)

Gauche Scheme:

(map (cut <>) (list eof-object + * gcd))
===>
(#<eof> 0 1 0)

--
The report card by the American Society of Civil Engineers showed the national
infrastructure a single grade above failure, a step from declining to the point
where everyday things simply stop working the way people expect them to. ---
washingtonpost.com/local/trafficandcommuting/us-infrastructure-gets-d-in-annual-report/2013/03/19/c48cb010-900b-11e2-9cfd-36d6c9b5d7ad_story.html