Latest #with Threads 
Coming from Clojure, Haskell, and Ocaml I’m very happy about using let for variable scoping.
I have then started using with for this in ...
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
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
Hi there :wave: !
This week at CodeBEAM I had a chance to meet an amazing crowd and participate in some interesting conversations. One o...
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
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
Coming from Clojure, Haskell, and Ocaml I’m very happy about using let for variable scoping.
I have then started using with for this in ...
New
Trending Over Three Years
Background
Recently I have rediscovered the with statement to program in a more rail oriented way, and I must say I am loving it thus far...
New
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
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
In a with case, with many operations, how can i individually handle errors?
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
Hi there :wave: !
This week at CodeBEAM I had a chance to meet an amazing crowd and participate in some interesting conversations. One o...
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
- Follow
- Join
- Shape
the conversation
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
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









