3 ms·
There are libraries that do this, like https://github.com/sasa1977/exactor https://github.com/sasa1977/exactor but the Elixir community nowadays seems more cons
by jeremyjh 6y ago
There are libraries that do this, like https://github.com/sasa1977/exactor https://github.com/sasa1977/exactor but the Elixir community nowadays seems more conservative about macro "magic" than it was a few years ago. Sasa has written an entire book about OTP and if he doesn't recommend using his own library I wouldn't argue with him, but I haven't written a Genserver myself in years despite writing Elixir for a living the past 3.5 years. If you are going to learn how they work though, it makes sense to stick to how Erlang actually implements them.
- buzzerbetrayed 6y ago> There are libraries that do this, like https://github.com/sasa1977/exactor https://github.com/sasa1977/exactor At the very top of the Extractor readme: > I don't maintain this project anymore. In hindsight, I don't think it was a good idea in the first place. I haven't been using ExActor myself for years, and I recommend sticking with regular GenServer instead :-) This both confirms what you said about the Elixir community shying away from macro magic, and makes this library a very bad idea to use in new projects, imo.
- jeremyjh 6y agoRight, thats why I said he doesn't recommend using his own library. My point is people have been down this road, and moved away from it, not that anyone should use it.
- deleted 6y ago[deleted]