The functionality is great, the only thing that bothers me is the syntax, i would prefer to write it something like this:
with
true <- true
false <- false
do
:something
end
Unfortunately - no. This is related to Elixir syntax, not `with` construct. You can do something like:
with(
a <- foo(),
b <- bar()
) do
…
end
Or
with \
a <- foo(),
b <- bar()
) do
…
end
But AFAIK both these forms will be changed by formatter.