I just would like to get the confirmation of the thesis in the subject.
It's not possible to somehow create local scope, i.e. local variables inside a function like x => some_expression
, in contrary to a function like x => {/*any code*/}
, is it?
Subquestion: does lexical scope can only be created between curly braces? e.g. in blocks, conditions, loops, try/catch etc.
P.S. I am 99% sure of that, but I want to know maybe I missed something...