Talk:Balanced brackets: Difference between revisions

→‎Extension?: What about characters that are not brackets?
(→‎Extension?: Ada too...)
(→‎Extension?: What about characters that are not brackets?)
Line 13:
 
::The Ada solution returns True rather than Open = 0, so would fail if the string ended without an opening bracket being closed. But that cannot happen from the way the strings are to be generated. --[[User:Paddy3118|Paddy3118]] 13:50, 21 February 2011 (UTC)
 
:What about characters that are not brackets? I added a Ruby solution that ''rejects'' "[letters]" because the task wants a string that "consists entirely of pairs of opening/closing brackets". But most of the other solutions on the page ''accept'' "[letters]" because they ignore other characters. The generated strings never have other characters. --[[User:Kernigh|Kernigh]] 21:05, 21 February 2011 (UTC)
Anonymous user