2 ms·
I've been writing Elixir since 2016 and I don't see myself switching anytime soon. It's a beautiful language to use, just nice and lovely. The functional aspect
by sergiotapia 5y ago
I've been writing Elixir since 2016 and I don't see myself switching anytime soon. It's a beautiful language to use, just nice and lovely. The functional aspects mean every function has no side effect. It's very very liberating.
- dudul 5y ago> The functional aspects mean every function has no side effect. This is not accurate. Any function can print, can call a DB or a web service. "Purity" (as in referentially transparent) is tangential to function programming. It can be achieved with other paradigms. That being said, functional programming does encourage it.
- thibaut_barrere 5y agoIt is true that _most_ functions do not have side effect and that this is very liberating (makes it easier to refactor and maintain). Also, most of the time when there is a side effect, it is clearly visible (due to using a stateful abstraction or library). So all in all while stating "every function has no side effect" is incorrect, I still share your overall feeling.