The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

ydz (4) [Avatar] Offline
#1
Hello,

while implementing the changes suggested in listing 10.6 and subsequently trying them in my local installation of Elixir 1.7.3 I noticed a deprecation warning:

warning: calling super for GenServer callback handle_info/2 is deprecated
  lib/todo/server.ex:82


It is announced in the changelog for the version https://github.com/elixir-lang/elixir/blob/v1.7.3/CHANGELOG.md#4-hard-deprecations but I can't find what would be the recommended way of removing this warning.

I believe in a previous chapter it's said that overriding `handle_info/2` with any matches requires you to include a manual catch all implementation, is it not the case anymore?

Thanks,
Yeray
sjuric (109) [Avatar] Offline
#2
Hi,

Yes, the super has been deprecated, and in most cases you don't really need to have a catch-all handle_info. The final version of the book will be amended accordingly.