4 ms·
What? There’s so much magic in Elixir and it’s ecosystem. Controllers in Phoenix, various handle_info overloads and requires implementations, misspelled atoms,
by strokirk 5y ago
What? There’s so much magic in Elixir and it’s ecosystem. Controllers in Phoenix, various handle_info overloads and requires implementations, misspelled atoms, pattern matching and mismatches with names structs, the implicit return… there’s so many footguns to fire at yourself.
- Zababa 5y ago> the implicit return It's not magic, it's a regular feature of functional programming languages.
- dnautics 5y agothese days returning from the middle of a function seems like magic to me. What is this return keyword and what sort of control flow is it abstracting over??
- weatherlight 5y agopattern matching isn''t magic.... its pretty standard in FP languages, elixir just happens to match on value over type.