From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id F3C7CBC88 for ; Thu, 10 Feb 2005 18:58:08 +0100 (CET) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1AHw6UR032674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 10 Feb 2005 18:58:08 +0100 Received: (qmail 28661 invoked from network); 10 Feb 2005 17:58:05 -0000 Received: from shell3.sea5.speakeasy.net ([69.17.116.4]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 10 Feb 2005 17:58:05 -0000 Date: Thu, 10 Feb 2005 09:58:05 -0800 (PST) From: brogoff To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] String to list to string In-Reply-To: <420ac293.30127b31.1fa8.0b02@smtp.gmail.com> Message-ID: References: <420ac293.30127b31.1fa8.0b02@smtp.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Miltered: at concorde with ID 420BA0AE.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 haskell:01 sml:01 substrings:01 speakeasy:01 strings:01 strings:01 functions:01 archives:02 functional:02 string:03 string:03 brian:03 library:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.8 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.0.2 X-Spam-Level: On Wed, 9 Feb 2005, [iso-8859-1] Juancarlo A=F1ez wrote: > Why aren't there functions in the standard library to convert strings to > lists of characters and back? Because it's a bad idea. This has been discussed numerous times in this mailing list, and if the mailing list search engine actually worked (like i= t used to a few years ago) I'd tell you to search the archives. > Haskell treats strings as lists of chars by default. Just goes to show you that even really smart people can do some amazingly d= umb things. Take a look at the SML Basis Library substrings for a smarter functional approach to this issue. -- Brian