* module/ice-9/deprecated.scm (#\y): Add deprecated support for
#y(1 0 1 ...) bitvectors.
`(begin *unspecified* . ,exps)))
(else
`(begin))))
+
+(read-hash-extend
+ #\y
+ (lambda (c port)
+ (issue-deprecation-warning
+ "The `#y' bitvector syntax is deprecated. Use `#*' instead.")
+ (let ((x (read port)))
+ (cond
+ ((list? x)
+ (list->bitvector
+ (map (lambda (x)
+ (cond ((zero? x) #f)
+ ((eqv? x 1) #t)
+ (else (error "invalid #y element" x))))
+ x)))
+ (else
+ (error "#y needs to be followed by a list" x))))))