3 ms·
Nice. Solid advice from Chris. I’d wondered about the pipes construct in Elixir for exactly that reason. Sure, it looks nice and easy, but based on my experien
by macintux 5y ago
Nice. Solid advice from Chris.
I’d wondered about the pipes construct in Elixir for exactly that reason. Sure, it looks nice and easy, but based on my experience with Erlang it seemed unlikely to be useful unless you are simply planning on crashing for any errors (which isn’t really the Erlang way).
- hmmokidk 5y agoYou can use changesets or a similar pattern to avoid this.
- jkhdigital 5y agoPipes are still plenty useful for chaining simple functions that aren’t going to cause trouble (because you validated the inputs already, or whatever).