3 ms·
Function objects, including closures, can be serializable - they are in Erlang/Elixir. You can send a lambda/closure over to another node (on another machine) t
by klibertp 6y ago
Function objects, including closures, can be serializable - they are in Erlang/Elixir. You can send a lambda/closure over to another node (on another machine) to execute. It's actually one of the basic building blocks of OTP.
- user-the-name 6y agoI assume this only works if the functions are exactly the same. It would break between different versions?
- rad_gruchalski 6y agoIt depends. It’s possible to provide a mechanism to switch versions but as it very often is: there are dragons.