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 IsBalanced() optional #28

Merged
merged 1 commit into from
Apr 25, 2023
Merged

Make IsBalanced() optional #28

merged 1 commit into from
Apr 25, 2023

Conversation

dimkr
Copy link
Contributor

@dimkr dimkr commented Apr 25, 2023

Since e7489f6, bestline() never returns when the input is something like a b :). This is probably good for REPL use cases, but less nice for applications like gplaces where the user enters free text and not code.

(IsBalanced() underflows against a b :) and allows input like a )(, but these are separate issues, and my use case doesn't need IsBalanced() at all)

dimkr added a commit to dimkr/gplaces that referenced this pull request Apr 25, 2023
Copy link
Owner

@jart jart 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 spotting this!

bestline.c Outdated Show resolved Hide resolved
bestline.c Outdated Show resolved Hide resolved
@dimkr dimkr requested a review from jart April 25, 2023 14:01
Copy link
Owner

@jart jart left a comment

Choose a reason for hiding this comment

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

Thank you!

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.

2 participants