Consider a rewrite of @readonly & @deprecate examples
Closed this issue · 1 comments
addyosmani commented
It was brought to my attention on Twitter that two of the examples from the current README include gender and animal humour that causes offence. I've rewritten them in my article and would ask that we take into account the feelings of folks who may feel hurt by them. We're all human, but in case using my examples is of help.
@readonly
rewritten to use a Meal/Dinner theme:
@decorate
rewritten to use a Person -> Captain Picard theme:
import { deprecate } from 'core-decorators';
class Person {
@deprecate
facepalm() {}
@deprecate('We stopped facepalming')
facepalmHard() {}
@deprecate('We stopped facepalming', { url: 'http://knowyourmeme.com/memes/facepalm' })
facepalmHarder() {}
}
let captainPicard = new Person();
captainPicard.facepalm();
// DEPRECATION Person#facepalm: This function will be removed in future versions.
captainPicard.facepalmHard();
// DEPRECATION Person#facepalmHard: We stopped facepalming
captainPicard.facepalmHarder();
// DEPRECATION Person#facepalmHarder: We stopped facepalming
//
// See http://knowyourmeme.com/memes/facepalm for more details.
//
^ Note: The facepalm here is more to represent my own embarrassment at not having caught this sooner. It's my fault for not having caught this in my article before publishing.