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

Output the (column, row) of a patternmatch when outputing at the INFO level #697

Merged
merged 4 commits into from
Apr 4, 2024

Conversation

ErinvanderVeen
Copy link
Member

@ErinvanderVeen ErinvanderVeen commented Apr 4, 2024

Output the (column, row) of a patternmatch when outputing at the INFO level

Issue: #681

Description

This is part one of issue #681, adding the row and column to the debug output while not supporting named patterns yet.

Checklist

Checklist before merging:

  • CHANGELOG.md updated
  • README.md up-to-date

Copy link
Member

@Xophmeister Xophmeister left a comment

Choose a reason for hiding this comment

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

Nice 🙂

I think I personally prefer Ly:x format to (x, y), but that's just bike-shedding. Besides, (x, y) is consistent with elsewhere, so no worries!

That said, this is recalculating the coords every time it spits out logging output, which is a lot. It would definitely be worth memoising pattern_position, if it's straightforward to do so.

@ErinvanderVeen
Copy link
Member Author

That said, this is recalculating the coords every time it spits out logging output, which is a lot. It would definitely be worth memoising pattern_position, if it's straightforward to do so.

Sure. Yeah. I'll do that!

Copy link
Member

@Xophmeister Xophmeister left a comment

Choose a reason for hiding this comment

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

❤️

@ErinvanderVeen ErinvanderVeen merged commit f74570b into main Apr 4, 2024
4 checks passed
@ErinvanderVeen ErinvanderVeen deleted the column-row-debug branch April 4, 2024 15:18
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.

None yet

2 participants