The dev team will have to answer your actual question, but I thought I
might offer a more compact solution that incorporates the fix you mentioned:
(define (yn #:read-one-char? [read-one-char? #f])
(display "y/n: ")
(flush-output (current-output-port))
(define func (if read-one-char? read-ch
Hey everyone,
I was working on a procedure to prompt the user for confirmation and found
something a bit strange - it did not appear to read for input when usingt
"racket -i" or in the Emacs Racket REPL buffer. Here is the code:
(define (yn #:read-one-char? [read-one-char? #f])
(display "y/n:
2 matches
Mail list logo