This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: why undefined return values?
Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> I also find it useful to regard #<unspecified> as an indicator of no
> return value (which is also utilized in the repl).
FWIW, in Kawa I defined (set! ...) (if x y) (set-car! ...) all to
return #!void. I also defined #!void to be eq to (values), i.e.
zero values. And the repl does not print the result of an
expression if it is #!void.
I don't like #<unspecified> because in Kawa, the result *is* specified.
It seems silly to specify that the result of set! is #<unspecified> ...
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/