For Programmers: Free Programming Magazines  


Home > Archive > Scheme > May 2007 > Empty function composition (was: Re: How Lisp's Nested Notation Limits









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Empty function composition (was: Re: How Lisp's Nested Notation Limits
Simon Richard Clarkstone

2007-05-21, 10:09 pm

Ville Oikarinen wrote:
> The discussion motivated me to implement function composition in my
> ngrease language. The following acceptance test shows it in action:
>
> $:assert:$:equals {
> abcd
> $:compose {
> _:a
> $:append-symbols {$:_ b}
> $:append-symbols {$:_ c}
> $:append-symbols {$:_ d}
> }
> }
>
> (From
> http://ngrease.svn.sourceforge.net/...209&view=markup
> )


There is a potential bug in your acceptance tests. Normally in
programming and mathematics, an empty composition is not an error but is
the identity function, as the identity function is also the left and
right identity element for function composition. Is there a special
reason that this case is different?

--
Simon Richard Clarkstone:
s.r.cl?rkst?n?@durham.ac.uk/s?m?n.cl?rkst?n?@hotmail.com
"August 9 - I just made my signature file. Its only 6 pages long.
I will have to work on it some more." -- _Diary of an AOL User_
Captain

2007-05-23, 7:04 am

HACKED P0RN SITE!
Direct access to member zone
http://uniqueadult.com/members/video.php?file=1
username: 218571
password: wanttocome
change the number in the link to get other videos!
Daamabbunane82

2007-05-25, 7:57 am

Compared to this Britney's tits are small! Look how these are teased, free video.
http://trully-bigtits.info/play.asp?bigtits218571
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com