I noticed that anonymous functions behave differently from regular functions w.r.t. serialization and code availability on other processes. e.g., when julia is run with multiple processes,
f(x) = x^2 pmap(f, 1:10)
throws an error, but
f = x->x^2 pmap(f, 1:10)
works fine. Is there documentation about the specific differences between anonymous and normal named functions that allow them to be used in this way?
(I sort of already understand that it is simpler to serialize anonymous functions because they only have 1 method, but I would like to understand the design decision so that I can make my code future-proof)