Conditional guard for structs of an explicit type
Blogged on how to conditionally define a guard to check if the argument is a particular struct, so that it works with previous versions of Elixir / OTP.
→ https://rocket-science.ru/hacking/2021/02/12/conditional-defguard
Read next Elixir Wizards S5E11 Yair Flicker on SmartLogic’s Origin, Evolution, and Elixir Adoption Process