I had thought that `def` returned (the equivalent [because it's really in 
elixir_bootstrap.erl] of a) quoted block and in order for a `def` to count 
in a loop, you'd need either a `for` comprehension, or `Enum.map`, so that 
the `quote` from each `def` is concatenated together to be merged into the 
caller's quoted form, but [Postgrex.Message.decode_auth_type/1 uses 
Enum.each](https://github.com/elixir-ecto/postgrex/blame/master/lib/postgrex/messages.ex#L370-L372).
 
 How are all the `def`s inside the `Enum.each` being preserved when 
`Enum.each` doesn't return the value of each function call? This is related 
to https://github.com/KronicDeth/intellij-elixir/issues/472.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/a768af02-fdc1-45be-ad69-e0661f79139b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to