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

Refactor string literal escaping #24

Merged
merged 4 commits into from
Nov 8, 2020
Merged

Refactor string literal escaping #24

merged 4 commits into from
Nov 8, 2020

Conversation

olejnjak
Copy link
Member

@olejnjak olejnjak commented Nov 3, 2020

This PR refactors internal escaping sequences so the code is bit more readable.

We should probably discuss if the "added" tests should be present or not, I didn't want to change older tests so we can be sure we do not create any regression, but still wanted to test the new "syntax" as well. I think more tests even if they test the same thing do not hurt.

Checklist

  • Added tests (if applicable)

@olejnjak olejnjak self-assigned this Nov 3, 2020
@janmisar janmisar self-requested a review November 4, 2020 08:30
Copy link
Member

@janmisar janmisar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think duplicated test are not necessary, it's just change of format, so I believe that 4 people's 👀 would catch the mistake if any.
If you want to keep old tests, feel free, no harm done of course, but please add a comment explaining why are there duplicated tests - could be pretty confusing in the future 😉

@LukasHromadnik
Copy link
Contributor

LukasHromadnik commented Nov 6, 2020

Why did you change only some of the tests? I thought that the we want to get rid of all the escaping hell.

And I agree with janmisar, it's only a matter of the format and I would prefer to have just the latter

@olejnjak olejnjak requested a review from janmisar November 6, 2020 11:55
Copy link
Contributor

@LukasHromadnik LukasHromadnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update. 👍 amazing work!

@olejnjak olejnjak merged commit eaf2bcc into master Nov 8, 2020
@olejnjak olejnjak deleted the refactor_escaping branch November 8, 2020 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants