This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Ticket 129: About value returned by mutation procedures

2011-05-19 15:44:00
WG1 - Core
alexshinn
major
medernac
duplicate
source
closed
2011-01-12 15:45:18
defect

Why not have "no value" instead of "unspecified one" in mutations procedures (set!, set-car!, set-cdr!, vector-set!, vector-fill!)

By convention, the value returned by a mutation procedure is unspecified.

to

By convention, mutation procedures return no value.

PS: is there any implementation returning the value being stored ?

In MIT Scheme, set! returns the previous value of the variable.

Thanks for bringing this to mind about MIT-Scheme, as at least one implementation returns a value it is indeed not wise to push such a change (at least for 'set!').

resolutionduplicate
statusnewclosed

Duplicate of #68.