Ways of defining a function

The function definition already introduces hard scope, so in this case they don’t differ. My point was about let in general; I only use it when I want its specific scoping behavior, but in your example it does not make a difference.