Latest #with Threads 
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
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
In “Elixir in Action”, there is an example about using pattern matching with the “with” special form:
with
{:ok, login} <- ex...
New
I have code like this (but bigger)
defmodule WithStacktrace do
def hello do
with {:ok, _value} <- {:ok, 1},
{:ok, value} ...
New
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
I am looking for something like in this simplified example:
with\
%{key: true} <- result = a_function_returning_map()
do
:success
e...
New
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
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
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
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
This Month's Trending
This Year's Trending
Last Three Year's Trending
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
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
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
In a with case, with many operations, how can i individually handle errors?
New
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
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
I have code like this (but bigger)
defmodule WithStacktrace do
def hello do
with {:ok, _value} <- {:ok, 1},
{:ok, value} ...
New
I am looking for something like in this simplified example:
with\
%{key: true} <- result = a_function_returning_map()
do
:success
e...
New
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
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
Consider this code:
with {:a, first_result} <- {:a, List.first(["apple"])},
{:b, b} <- {:b, %{} |> to_string} do
{:ok, ...
New
In “Elixir in Action”, there is an example about using pattern matching with the “with” special form:
with
{:ok, login} <- ex...
New
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
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
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
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #ash-questions
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #discussion
- #javascript
- #elixirconf
- #library
- #oban-questions
- #dialyzer
- #docker
- #onsite
- #authentication
- #podcasts
- #full-time-contract
- #umbrella
- #code-sync
- #ecto-query
- #phoenix_html
- #iex
- #graphql
- #genstage
- #elixir-ls
- #nerves-questions
- #podcasts-by-brainlid
- #supervisor
- #websockets
- #distillery
- #advent-of-code
- #blog-post
- #livebook-questions
- #processes
- #forms
- #api
- #metaprogramming







