Subject: Re: tab literal in scheme.
From: (Rob Warnock)
Date: 1999/11/05
Newsgroups: comp.lang.scheme
Message-ID: <7vtqsl$>
Olin Shivers  <> 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 #\	)

| 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 Warnock, 8L-846
Applied Networking
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		FAX: 650-933-0511
Mountain View, CA  94043	PP-ASEL-IA