Latest #with Threads Top

sodapopcan
So after complaining about this for the third or fourth time on this forum, I figured I should make a proposal. TL;DR with can be hard t...
New
dogweather
dbg() is one of my favorite Elixir features: placing it somewhere in a pipe of function calls outputs all the intermediate results. It’s ...
New
mattfara50
In “Elixir in Action”, there is an example about using pattern matching with the “with” special form: with {:ok, login} <- ex...
New
tomekowal
I have code like this (but bigger) defmodule WithStacktrace do def hello do with {:ok, _value} <- {:ok, 1}, {:ok, value} ...
New
josefrichter
Say I have a bunch of simple boolean conditions I want to check in a with statement, something like with true <- is_integer(foo), ...
New
silverdr
I am looking for something like in this simplified example: with\ %{key: true} <- result = a_function_returning_map() do :success e...
New
jonathan-scholbach
I find myself using a lot of very long with-statements. The functions in the with pipeline return {:ok, result} or some {:error, :error_t...
New
siddhant3030
I have a case statement that is failing in credo. Giving me this error “Function body is nested too deep” I know we can use “with” here ...
New
intercaetera
Sort of a newbie code review question, but I’m curious if there’s a way to work around this. I’m still trying to wrap my head around good...
New
woohaaha
I read an article on the Dockyard blog and I’m wondering why they used an equal sign with a with statement. The code example is: defm...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

dogweather
dbg() is one of my favorite Elixir features: placing it somewhere in a pipe of function calls outputs all the intermediate results. It’s ...
New
sodapopcan
So after complaining about this for the third or fourth time on this forum, I figured I should make a proposal. TL;DR with can be hard t...
New

Trending Over Three Years Top

Kurisu
Hello forum! I’m trying to retrieve an updated conn, returned in the first line of a “with” statement, when second line failed. But I’m ...
New
pmjoe
In a with case, with many operations, how can i individually handle errors?
New
josefrichter
Say I have a bunch of simple boolean conditions I want to check in a with statement, something like with true <- is_integer(foo), ...
New
siddhant3030
I have a case statement that is failing in credo. Giving me this error “Function body is nested too deep” I know we can use “with” here ...
New
tomekowal
I have code like this (but bigger) defmodule WithStacktrace do def hello do with {:ok, _value} <- {:ok, 1}, {:ok, value} ...
New
silverdr
I am looking for something like in this simplified example: with\ %{key: true} <- result = a_function_returning_map() do :success e...
New
woohaaha
I read an article on the Dockyard blog and I’m wondering why they used an equal sign with a with statement. The code example is: defm...
New
yourpalal
When using with/1 to handle a bunch of matches and things that return {:ok, _} or :error or {:error, _} I often need to differentiate bet...
New
slouchpie
Consider this code: with {:a, first_result} <- {:a, List.first(["apple"])}, {:b, b} <- {:b, %{} |> to_string} do {:ok, ...
New
mattfara50
In “Elixir in Action”, there is an example about using pattern matching with the “with” special form: with {:ok, login} <- ex...
New
jonathan-scholbach
I find myself using a lot of very long with-statements. The functions in the with pipeline return {:ok, result} or some {:error, :error_t...
New
intercaetera
Sort of a newbie code review question, but I’m curious if there’s a way to work around this. I’m still trying to wrap my head around good...
New
axelson
This is a question that originated on the Elixir Slack from David Billskog and I have made only minor changes to the module. Given this ...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement