guile-devel
[Top][All Lists]
Advanced

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

Re: records as s-expressions


From: Marius Vollmer
Subject: Re: records as s-expressions
Date: Tue, 07 Oct 2003 17:47:43 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Thamer Al-Harbash <address@hidden> writes:

> Would there be any interest in accepting a patch which makes
> records print out as s-expressions so they are more easily
> serialized?

Yes!

> Would this break any standards or cause backward compatibility
> problems?

Depends on your implementation...

I see two choices: follow Common Lisp and use #S(<type> ...), or
follow SRFI-10 and use something like #,(record <type> ...).  I don't
think there is any SRFI that specifies a concrete read syntax for
records.

We already use #s for uniform arrays, but overwrite it when (srfi
srfi-4) is loaded...  #S is free, tho.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

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