Why are the registered process names just atoms and only atoms?

Hello,

A very simple question. Why are the registered process names just atoms and only atoms? Why can’t they be opaque and take pretty much any term?

Thanks

2 Likes

For register/2, yes this is true. I think this is an excellent question and one which I can not provide an answer for. There’s going to be history involved in the answer surely; and while I can speculate on design decisions; I’d love to hear an answer from someone who knows that history.

That said, you definitely can name processes using any term using global or some other registry (via method).

See :

3 Likes

There’s an issue open:

3 Likes

Maybe you will find this project interesting: GitHub - uwiger/gproc: Extended process registry for Erlang

2 Likes