Cannot find var's name when I eval an expr

eval works at global scope, so it cannot create local variables inside a function, no matter what you do. There’s some related discussion in Unpack named tuples (does anyone know how to do it?) - #9 by rdeits .

Can you pass an anonymous function instead of an expression? That should be more flexible and much more efficient.

2 Likes