Date:        Tue, 10 Jun 2025 17:34:44 -0400
    From:        Zachary Santer <zsan...@gmail.com>
    Message-ID:  
<CABkLJUJAwdPWzC8qoJ2Fx6Wwa=rkmat-rypcu8qzb7gn4uy...@mail.gmail.com>

  | Functions can be declared inside of other functions, so I thought
  | doing the following was pretty slick:

Function definitions aren't declarations in any sense similar to
other programming languages.   They are executable statements, which
can be executed, conditionally or not, at any point in the code, and
when executed create the function globally.

kre

ps: putting a function definition inside a loop is generally not
a useful thing to do, unless its definition varies from iteration to
iteration, in which case the loop probably also wants to unset it
at some point as well.



Reply via email to