[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Don't mix definitions and expressions in SRFI-9
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] Don't mix definitions and expressions in SRFI-9 |
Date: |
Sun, 06 Mar 2011 23:26:40 +0100 |
User-agent: |
Gnus/5.110013 (No Gnus v0.13) Emacs/23.2 (gnu/linux) |
Hi Andreas,
Andreas Rottmann <address@hidden> writes:
> The expansion of `define-inlinable' contained an expression, which made
> SRFI-9's `define-record-type' fail in non-toplevel contexts ("definition
> used in expression context").
SRFI-9 says “Record-type definitions may only occur at top-level”, and
I’m inclined to stick to it. If we diverge, then people could write
code thinking it’s portable SRFI-9 code while it’s not.
How about adding a ‘let-record-type’ or similar in (srfi srfi-9 gnu)?
Thanks,
Ludo’.