There’s also :sys.get_state(pid|name) which returns the state for debugging 
purposes.

Cheers,
Adam

> On 31. Jan 2018, at 00:39, José Valim <jose.va...@gmail.com> wrote:
> 
> 
> I am not in favour of the proposal but can see some merit in handlers not 
> modifying the state. For that case we might still use handle_call but allow 
> the handlers to return the result without the state part like {:reply, reply} 
> 
> But that is a new return type to learn. :) Plus we would also need similar 
> for :noreply and :stop.
> 
> 
> -- 
> 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-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4K9OtFimymiCyMOOLxmZPXqMhM2s_Y%2Ba9WkhLvmg%2BC_Aw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/356CB387-9A11-4E99-9CEF-0553F6CE7118%40alind.io.
For more options, visit https://groups.google.com/d/optout.

Reply via email to