guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A variable that holds a string which may be the name of a variable.


From: Neil Jerram
Subject: Re: A variable that holds a string which may be the name of a variable.
Date: Thu, 03 Dec 2009 18:56:18 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Linas Vepstas <address@hidden> writes:

> 2009/12/2 Neil Jerram <address@hidden>:
> Neil,
>
> For my own edification -- is tehre any difference between
>
>>  (let ((sym (with-input-from-string mything read)))
>
> and
>
> (let ((sym (string->symbol mything)))

In the case where mything is a string consisting of symbol syntax
characters, no.

Maybe you're then suggesting that Richard could use string->symbol
instead - in which case I agree.  Using with-input-from-string and read
is a bit of overkill; I forgot about string->symbol.

Regards,
        Neil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]