[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regularization of Procedures in Scheme (pair setters)
If you set a vector with VECTOR-SET! and a string with STRING-SET!,
why do you set a pair with SET-CAR! and SET-CDR! instead of CAR-SET!
and CDR-SET!?
Because CAR is not the name of a type. The correct name would be PAIR-SET!
and for consistency, it must take three arguments: a pair, a field
designator (in this case, perhaps one of the symbols CAR or CDR), and a new
value. Ecch.
Pavel