Jump to content

Nested function: Difference between revisions

m
(Task description: improve wording for inner function responsibility.)
Line 210:
=={{header|J}}==
 
J does not have nested scopes, so they must be [[Scope/Function_names_and_labels#J|emulated]]. (The design philosophy here is that nesting tends to become difficult to understand when taken too far, so the coder and designer should be mildly penalized with extra work for choosing nesting as opposed to some other problem solving approach.)
 
That said, emulating a single level of nesting is relatively trivial and does not reflect the complexities necessary for more elaborate (and more difficult to understand) cases:
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.