[Haskell-cafe] Reversing a string of words: C# v Perl V Ruby v Haskell

Tim Newsham newsham at lava.net
Sun Dec 10 15:10:06 EST 2006

>> A popular C# approach goes something like:
>>  private static string reverseWords(string str) {

> Yikes! There ought to be a law against public displays of C# which are not 
> accompanied by health warnings.

Oh come on.  if someone had bothered to abstract out string splits and 
string joins as separate functions it wouldnt be all that horrid..

> Bernie.

Tim Newsham

More information about the Haskell-Cafe mailing list