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
Use clearer terminologies #1874
Conversation
i don't think |
Neither https://twitter.com/dhh/status/1032050325513940992 nor I assume that there's some potential issue involving races. I checked https://en.wikipedia.org/wiki/Blacklisting#Origins_of_the_term and didn't see any connections to race. This term is used not only in computing but in other contexts, too. I guess I am missing something obvious here. I'd appreciate some background. |
@kyrylo |
i would even think it should not be a configuration option at all but part of a public Pry::RescuableException.dont_rescue SomeError |
I do find this hard to understand:
I wouldn't be opposed to the name |
i would vote for |
ditto on |
'unrescued' seems like the perfect word for this. |
Deprecate Pry.config.exception_whitelist, use Pry.config.unrescued_exceptions instead. Deprecate Pry::DEFAULT_EXCEPTION_WHITELIST, use Pry::DEFAULT_UNRESCUED_EXCEPTIONS instead. What white / black means are not clear, use clearer terminologies.
lgtm, thoughts @kyrylo ? |
Nice work, it reads much better now! |
This Pull Request updates terminology in the codebase:
Pry.config.exception_whitelist
, usePry.config.unrescued_exceptions
instead.Pry::DEFAULT_EXCEPTION_WHITELIST
, usePry::DEFAULT_UNRESCUED_EXCEPTIONS
instead.White and black are not clear, use clearer unrescued as suggested.
Original motivation, other community efforts examples: