Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Fwd: Re: [Caml-list] The boon of static type checking
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-10 (17:58)
From: brogoff <brogoff@s...>
Subject: Re: [Caml-list] String to list to string
On Wed, 9 Feb 2005, [iso-8859-1] Juancarlo Añez 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 it
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 dumb

Take a look at the SML Basis Library substrings for a smarter functional
approach to this issue.

-- Brian