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

Make abstraction over Translator #106

Merged
merged 2 commits into from Jan 23, 2021
Merged

Conversation

xepozz
Copy link
Contributor

@xepozz xepozz commented Jan 23, 2021

Q A
Is bugfix? ✔️
New feature? ✔️
Breaks BC? ✔️

@samdark samdark added the status:code review The pull request needs review. label Jan 23, 2021
@samdark samdark requested a review from darkdef January 23, 2021 17:22
@xepozz xepozz requested a review from a team January 23, 2021 17:23
@samdark
Copy link
Member

samdark commented Jan 23, 2021

Good one but eventually it will lead to #99 if we'll remove factories.

@xepozz
Copy link
Contributor Author

xepozz commented Jan 23, 2021

Good one but eventually it will lead to #99 if we'll remove factories.

The difference is that we don't need an interlayer in the form of ErrorMessage; there is no need to throw a formatter into methods, making the API terrible. The formatter can be used as a translator now: simple and convenient.

And yes, ValidatorFactory will be removed in #97.

@samdark
Copy link
Member

samdark commented Jan 23, 2021

#97 (comment)

@samdark
Copy link
Member

samdark commented Jan 23, 2021

OK. Factories will be removed.

@samdark samdark merged commit 94d693e into master Jan 23, 2021
@samdark samdark deleted the make-abstraction-over-translator branch January 23, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:code review The pull request needs review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants