chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Re: Lua


From: felix winkelmann
Subject: [Chicken-users] Re: Lua
Date: Wed, 11 Jul 2007 09:41:26 +0200

On 7/11/07, John Cowan <address@hidden> wrote:
John Cowan scripsit:

> Excellent!  Can you put it in the repository?  Also, I think you should
> consider using the unspecified object as Lua nil; conceptually they
> are pretty much the same.  That frees up symbols (as well as strings)
> to be translated to Lua strings, since Lua strings serve some of the
> purposes of symbols in Scheme (they are immutable, in particular).

I just found out that Lua interns all strings, which makes them
even more like symbols.  So Scheme->Lua should accept either symbols
or strings, but Lua->Scheme should return symbols.

I have changed the egg to use (void) as representing Lua nil. That Lua
strings are interned is an implementation detail, though. I find mapping
them to Scheme strings more natural.


cheers,
felix




reply via email to

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