Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest explicit mode of 'any with read-line. #211

Open
jackfirth opened this issue Aug 18, 2023 · 0 comments
Open

Suggest explicit mode of 'any with read-line. #211

jackfirth opened this issue Aug 18, 2023 · 0 comments
Labels
new lint Issues suggesting new lints or pull requests implementing new lints

Comments

@jackfirth
Copy link
Owner

jackfirth commented Aug 18, 2023

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 jackfirth added the new lint Issues suggesting new lints or pull requests implementing new lints label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new lint Issues suggesting new lints or pull requests implementing new lints
Projects
None yet
Development

No branches or pull requests

1 participant