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

Silly useless objects #528

Open
purplecabbage opened this issue Apr 20, 2022 · 0 comments
Open

Silly useless objects #528

purplecabbage opened this issue Apr 20, 2022 · 0 comments

Comments

@purplecabbage
Copy link
Member

isDefined, isDefault, isEqual are all pretty strange overuse/misuse of object oriented principles.
There are cases where the object is null, so calls to null.isDefined will throw, where an isDefined function or a simple test of config?.destination would be sufficient.

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

No branches or pull requests

1 participant