resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

Suggest explicit mode of `'any` with `read-line`.

Open jackfirth opened this issue 1 year ago • 0 comments

See racket/racket#4074. Resyntax could suggest replacing (read-line in) with (read-line in 'any) and (read-line) with (read-line (current-input-port) 'any). This technically changes behavior; a behavior-preserving transformation would be to use 'linefeed instead. The suggestion could document that 'linefeed is a bad default and to use it explicitly if 'any doesn't work.

jackfirth avatar Aug 18 '23 20:08 jackfirth