Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
troxy
14y ago
0 comments
Save
Share
Do you know why you have slightly different numbers of (){}[] characters? In C or C++ shouldn't those all be paired up to match?
0 comments
2 comments · 1 top-level
top
newest
oldest
zeteo
14y ago
· 1 in thread
It can probably be accounted for by comments (e.g. people sometimes comment out half a block). Although the comments should be left out, so as not to mix the C and the English.
alextgordon
14y ago
Also string and character literals. It's common to write something like
if (c == '{')
and not need to test for the matching one.
j
/
k
navigate · click thread line to collapse