11 ms·
Also not necessarily a function, both rust and js support closures in brackets.
by pietrovismara 6y ago
Also not necessarily a function, both rust and js support closures in brackets.
- masklinn 6y agoA block introduces a lexical sub-scope but it's not a closure, because there's no closing over: the "closing over" part is about a function accessing its definition context during its execution. A block doesn't have such a distinction.