develooper Front page | perl.perl6.language | Postings from July 2006

RE: S29 update ready

Thread Previous | Thread Next
Darren Duncan
July 8, 2006 18:31
RE: S29 update ready
Message ID:
At 6:25 PM -0700 7/8/06, Darren Duncan wrote:
>At 8:32 PM -0400 7/8/06, Joe Gottman wrote:
>>I have one minor comment about join.  You should specify its behavior when
>>it is passed an empty list.  Does it return undef or the empty string?
>I think it makes the most sense for it to return an empty string, 
>which is a reasonable degenerate case of a string-join. -- Darren 

Or to put it another way, I see string-join being like a prefix 
version of the ~ operator (though with extra features), and so the 
reduce rules of ~ should perhaps determine it.  According to Synopsis 
3, "[~]()" returns the empty string. -- Darren Duncan

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About