Expression-based inspection for PIDs

47 views
Skip to first unread message

Ilya Averyanov

unread,
Sep 5, 2022, 9:29:04 AM9/5/22
to elixir-lang-core
Hello!

In Elixir 1.14, we have:

>expression-based inspection has been implemented for Version.RequirementMapSet, and Date.Range.

What prevents expression-based inspection from being implemented for PIDs? Like:

iex(1)> self()
pid(0,110,0)


Felipe Stival

unread,
Sep 5, 2022, 9:55:34 AM9/5/22
to elixir-lang-core
I'd guess this is blocked by the fact that `pid/3` isn't available in `Kernel`, but in `IEx.Helpers`.

José Valim

unread,
Sep 5, 2022, 10:00:32 AM9/5/22
to elixir-lang-core
Yeah. Hardcoding PIDs in the source code is going to lead to bugs, that's the reason to avoid making it first class.

--
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/52377286-c4d7-4378-8445-25fa12214da8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages