On Wed, 23 Sep 2009, [email protected] wrote:

> Message: 7
> Date: Wed, 23 Sep 2009 01:34:05 -0400
> From: John Cowan <[email protected]>
> Subject: Re: [r6rs-discuss] Proposed NON-features for small Scheme,
>       part 8: string-set! must die
> To: Aubrey Jaffer <[email protected]>
> Cc: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii

> Perl, Basic, Q, and Pure also lack characters.  Haskell uses integers as
> characters and lists of integers as strings.

Actuall, the language spec indicates that Haskell uses a pre-defined 
enumeration called "Char" for characters.  The type "String" is defined to 
be a list of "Char".  See 6.1.2:

http://haskell.org/onlinereport/basic.html

The "Char" enumeration in turn contains values with integer equivalent 
("fromEnum") in the range 0 to 1114111 (0x10FFFF) inclusive.  But if this 
is to be considered to be using integers as characters then every 
(practical) language does so at some level.

Isaac Morland                   CSCF Web Guru
DC 2554C, x36650                WWW Software Specialist

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to