Difference between anonymous and named functions?

Thanks man , i found this stack page with more info, but i am not clear about

This code will fail to compile because every time you see a def, you get an empty variable scope. That is an important difference between them

what is mean by empty variable scope?