News for hackers. Stuff that matters.
Re:Erlang/OTP 25.0 Release by OkayPhysicist on Wednesday May 18, 2022 @01:12PM (#31425194)
The with statement in Elixir already allows for abitrary expressions between the with and the do. I'm not sure what I'm missing here.
Re:Erlang/OTP 25.0 Release by mononcqc on Wednesday May 18, 2022 @01:21PM (#31425298)
You're right. After all these years (and even writing a book that had Elixir snippets in it) I had never seen a single example showing it was possible and did not know it could do it.

Well there you go, I guess the pattern is equivalent but incidental.