Currently the implementations of both [ and ] require a lookup through the code to find the matching brace each time. This should be avoided by doing some analysis up front (when the code is first loaded). This is also the reason for new #5 returning a Result because the code could be invalid when there are unmatched brackets.
Currently the implementations of both
[
and]
require a lookup through the code to find the matching brace each time. This should be avoided by doing some analysis up front (when the code is first loaded). This is also the reason fornew
#5 returning aResult
because the code could be invalid when there are unmatched brackets.