Proposal: return pid() or dest() from Process.register/2

21 views
Skip to first unread message

J. Daniel Ashton

unread,
Jun 18, 2020, 10:54:30 AM6/18/20
to elixir-lang-core

At this point Process.register/2 returns true. It might be more useful for it to return the pid() or dest() that was just registered.

Bonus proposal: Process.info/1 takes only a pid(). Would it be helpful if Process.info/1 took a dest() ?

With kind regards,

Daniel

José Valim

unread,
Jun 18, 2020, 11:01:01 AM6/18/20
to elixir-l...@googlegroups.com
Hi Daniel,

Unfortunately changing the return type would be a backwards incompatible change.

Generally speaking, those operations are really just proxies to their Erlang counter-parts, so we keep their inputs and outputs the same.

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/7f82c600-2618-43b2-a878-76fa64224913o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages