On 1/18/15 at 6:12 PM, [email protected] (San) wrote:
On the broader question of whether I need to "fix" this at
all... does the fact that a function doesn't balance in BBEdit
imply that the function is brittle, i.e. might throw an error
under some circumstances, even though I'm not seeing any errors?
My picture is that the Balance command must be among the
trickiest of routines for a text editor, perhaps especially
around regular expressions, so I wouldn't assume the command's
failure reflects your script's stability. I take it seriously
when the Balance command doesn't work, because the overwhelming
majority of times there IS a balancing error in my code. But if
I can be quite confident that I've found why it fails, and that
the code is in fact correct and doing what it's supposed to do,
then I devise a work-around.
That's my hack-to-get-it-done approach. You might send a sample
of the code and the material it's working on to Barebones
support to get a better answer :-)
On another level, an answer would be to suggest running your
script through a lint program or similar utility for checking
syntax, and also to write some tests to see if you can find
cases that break the function.
HTH
--
- Bruce
_bruce__van_allen__santa_cruz__ca_
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].