switch (open) { case "[": switch (open[0]) { case '[':
How string switches are optimized? Also if-else chain should work better here.
switch (open) { case "[": switch (open[0]) { case '[':
How string switches are optimized? Also if-else chain should work better here.