lexi-lambda / racket-r7rs

An implementation of R7RS in Racket
97 stars 14 forks source link

Differences in behaviour to racket #14

Closed pmatos closed 4 years ago

pmatos commented 4 years ago

Unsure this is a bug, but is there a reason why:

#lang racket
(+ 2 2)

and

#lang r7rs
(import (scheme base))
(+ 2 2)

The first prints 4 and the second prints nothing when ran with racket. Is there a way to enable the print behaviour in r7rs?

lexi-lambda commented 4 years ago

As far as I can tell, R7RS leaves whether or not such values are printed or ignored unspecified. As a general rule, this library avoids doing anything not explicitly mandated by the standard, which is consistent with #lang r5rs and #lang r6rs, so I’m going to close this as “not a bug.”