2 ms·
Const is similar, now that you mention it.
by jayd16 1y ago
Const is similar, now that you mention it.
- Calavar 1y agoConst is the reverse. Constness is infectious down the stack (the callee of a const function must be const) while asyncness is infectious up the stack (the caller of an async function must be async). So you can gradually add constness to subsections of a codebase while refactoring, only touching those local parts of the codebase. As opposed to async, where adding a single call to an async function requires you to touch all functions back up to main