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

Replace sanity language in combineReducers #2335

Merged
merged 1 commit into from
Apr 3, 2017
Merged

Replace sanity language in combineReducers #2335

merged 1 commit into from
Apr 3, 2017

Conversation

seanmhanson
Copy link
Contributor

This addresses issue #2334

This replaces sanityError and assertReducerSanity with more descriptive, less ableist language that describes what the check is actually doing (checking and asserting the shape). I'm proposing to call it assertReducerShape and describe the error as a shapeAssertionError so that we're more precise and more inclusive at the same time!

This replaces `sanityError` and `assertReducerSanity` with more descriptive, more inclusive language that describes what the check is actually doing (checking and asserting the shape).
@timdorr
Copy link
Member

timdorr commented Apr 3, 2017

Yep, that's a more accurate description of the check being done and the intended scope.

However, I very much disagree with this being ableist language. "Sanity" in this case is the literal definition of the word: "reasonable and rational behavior." That is rather ambiguous in the case of a code assertion (hence, it should be changed), but has nothing to do with inclusion issues or stigmatizing mental disease.

@timdorr timdorr merged commit 7e745ce into reduxjs:master Apr 3, 2017
@gaearon
Copy link
Contributor

gaearon commented Apr 3, 2017

Thanks for the change! I was using the commonly known definition of sanity check and didn't really think about other meanings. I agree the change is for the better. 👍

seantcoyote pushed a commit to seantcoyote/redux that referenced this pull request Jan 14, 2018
This replaces `sanityError` and `assertReducerSanity` with more descriptive, more inclusive language that describes what the check is actually doing (checking and asserting the shape).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants