Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Class vars, instance vars, even (gasp) globals.

No need to focus on language-specific implementation details. A map that you are passing around in Elixir will serve you just fine 95% of the time. For the other 5% you can store state in an Agent, GenServer or in the ETS node-wide cache (here are your global variables).

Not sure why you call FP a cargo cult btw, but in case you are interested in feedback: it makes you sound like arguing in bad faith.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: