Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
geofft
6y ago
0 comments
Save
Share
Yup, C and many other languages also have it:
if (ptr = strchr(address, ':')) port = atoi(ptr + 1);
0 comments
2 comments · 1 top-level
top
newest
oldest
iso-8859-1
6y ago
· 1 in thread
It doesn't do scoping, so not really the same.
gpderetta
6y ago
it can in C++ (when specifying auto or a type). I thought it did in C as well, but apparently not.
j
/
k
navigate · click thread line to collapse