Subject: Re: tab literal in scheme.
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1999/11/05
Newsgroups: comp.lang.scheme
Message-ID: <7vtqsl$31b2k@fido.engr.sgi.com>
Olin Shivers  <shivers@lambda.ai.mit.edu> wrote:
+---------------
| You represent the tab character... with the tab character.
| In other words, you can put *any character at all* in a string constant...
+---------------

You can also put it in a character literal, but I'd discourage this,
as it's hard to see later, e.g.:

	> (char->integer #\	)
	9
	>

+---------------
| This is not a completely satisfactory solution, since it's hard to
| distinguish tabs from spaces when you see them in your program text.
+---------------

Exactly, but at least the string approach tells you *something's* there... ;-}

+---------------
| But it's what R5RS gives you.
+---------------

Well, for ASCII at least, you also have "integer->char":

	> (list->string (list #\A (integer->char 9) #\B))
	"A	B"
	> 


-Rob

-----
Rob Warnock, 8L-846		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		FAX: 650-933-0511
Mountain View, CA  94043	PP-ASEL-IA