top | item 16680221 (no title) timoxley | 8 years ago why discuss order hn newest jimmaswell|8 years ago I've never seen syntax like 'if (err) return void handleError(err)' before. If I saw that in JS I'd have to look up what it meant. jmull|8 years ago It’s an obscure operator. Many people are unaware of it and many of those that are have a vague notion of exactly what it does.So people reading this code may have to stop and puzzle out this little pattern.Here you can replace “ void “ with a new line and have code anyone with basic familiarity with a c-like language can read and understand intuitively.
jimmaswell|8 years ago I've never seen syntax like 'if (err) return void handleError(err)' before. If I saw that in JS I'd have to look up what it meant.
jmull|8 years ago It’s an obscure operator. Many people are unaware of it and many of those that are have a vague notion of exactly what it does.So people reading this code may have to stop and puzzle out this little pattern.Here you can replace “ void “ with a new line and have code anyone with basic familiarity with a c-like language can read and understand intuitively.
jimmaswell|8 years ago
jmull|8 years ago
So people reading this code may have to stop and puzzle out this little pattern.
Here you can replace “ void “ with a new line and have code anyone with basic familiarity with a c-like language can read and understand intuitively.