mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
Using brace-notation for write/ss for records not containing any shares.
This commit is contained in:
parent
a56b497a00
commit
befe63d6ba
1 changed files with 47 additions and 51 deletions
|
@ -55,10 +55,6 @@
|
|||
(set-cdr! cell count)
|
||||
(set! count (+ count 1))))
|
||||
(cont x cell)))))
|
||||
(cond
|
||||
((null? shared)
|
||||
(write x out))
|
||||
(else
|
||||
(let wr ((x x))
|
||||
(check-shared
|
||||
x
|
||||
|
@ -106,7 +102,7 @@
|
|||
(and (type? type) (type-printer type)))
|
||||
=> (lambda (printer) (printer x wr out)))
|
||||
(else
|
||||
(write x out))))))))))
|
||||
(write x out))))))))
|
||||
|
||||
(define write/ss write-with-shared-structure)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue