[erlang-questions] Process declarations

Bengt Kleberg bengt.kleberg@REDACTED
Thu Oct 5 10:58:43 CEST 2006


On 2006-10-05 09:31, Joe Armstrong wrote:
...deleted
>     spawn(fun() -> 1 end).
...deleted
> Note this implies that the function is exported from the module,
> which would put an end to the horribly practise of artificially
> exporting functions that are known to be targets of spawns.

you have yourself already shown how to never export functions known to 
be targets of spawns. i only use spawn/1,2, considering the older 
versions (/3,4) as deprecated.


bengt
-- 
    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."



More information about the erlang-questions mailing list