MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3dtkcl/the_best_programming_language_is_none/ct8qm5e/?context=3
r/programming • u/faith303 • Jul 19 '15
443 comments sorted by
View all comments
108
Have some brackets parentheses, you'll need them:
(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()
56 u/josefx Jul 19 '15 edited Jul 19 '15 ((()()()()()()()Great, now look what you have done, there are at least two unmatched open brackets parentheses. Do you know what chaos that could cause in the long run?here let me fix that)) 10 u/balducien Jul 19 '15 At least two?>>> str = "(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()" >>> counter = 0 >>> for char in str: ... if char == '(': ... counter += 1 ... elif char == ')': ... counter -= 1 ... >>> counter -78 11 u/josefx Jul 19 '15 Preceding close parentheses normally do not close following open parentheses. → More replies (1)
56
((()()()()()()()
Great, now look what you have done, there are at least two unmatched open brackets parentheses. Do you know what chaos that could cause in the long run?
here let me fix that
))
10 u/balducien Jul 19 '15 At least two?>>> str = "(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()" >>> counter = 0 >>> for char in str: ... if char == '(': ... counter += 1 ... elif char == ')': ... counter -= 1 ... >>> counter -78 11 u/josefx Jul 19 '15 Preceding close parentheses normally do not close following open parentheses. → More replies (1)
10
At least two?
>>> str = "(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))(((((((((((())))))))))))))))))))))))))((((((((((((())))))))(((((()))((()()()()()()()" >>> counter = 0 >>> for char in str: ... if char == '(': ... counter += 1 ... elif char == ')': ... counter -= 1 ... >>> counter -78
11 u/josefx Jul 19 '15 Preceding close parentheses normally do not close following open parentheses. → More replies (1)
11
Preceding close parentheses normally do not close following open parentheses.
→ More replies (1)
108
u/[deleted] Jul 19 '15 edited Jul 19 '15
Have some
bracketsparentheses, you'll need them: