jart / bestline

ANSI Standard X3.64 Teletypewriter Command Session Library
Other
443 stars 29 forks source link

Make IsBalanced() optional #28

Closed dimkr closed 1 year ago

dimkr commented 1 year ago

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)