[r6rs-discuss] [Formal] Datum values,
shared structure and eq? vs equal?
Mikael Tillenius
mti at tillenius.com
Sun Feb 18 07:20:04 EST 2007
---
This message is a formal comment which was submitted to formal-comment at r6rs.org, following the requirements described at: http://www.r6rs.org/process.html
---
Submitter: Mikael Tillenius mti at tillenius.com
Issue: Enhancement
Priority: Minor
Component: Formal Syntax
Version: 5.92
Summary: Datum values, shared structure and eq? vs equal?
Description: The description of datum values in section 1.9 doesn't
forbidd shared structure. For example would the value of "(let ((x (cons
(cons 1 2) 3))) (set-cdr! x (car x)) x)" return a datum value? I assume
the answer i "no" but it would be nice to make it explicit. Also in
section 3 (page 11, middle of right column) in the discussion of "(8
13)" vs "( 8 13 )" I think it should be defined what is meant by
"equal", by adding a reference to the predicate "equal?".
Proposal: Make it explicit in section 1.9 that shared or recursive
structure is forbidden. Add a reference to "equal?" in section 9.6.
/Mikael
More information about the r6rs-discuss
mailing list