Re:F.el: Modern API for working with files and directories i...
by daptaq on Wednesday July 06, 2022 @03:52PM
(#32005944)
> I have never seen an example of if-let that made me understand it, but I see thread-first and thread-last, those may be useful.
They are often useful when you have a computation that might fail at any step, sort of like with Maybe monads in Haskell. Eg. if I want to retrive a password from auth-source, it might be that no entry exists, or that the entry has no password entry. In that case I do:
They are often useful when you have a computation that might fail at any step, sort of like with Maybe monads in Haskell. Eg. if I want to retrive a password from auth-source, it might be that no entry exists, or that the entry has no password entry. In that case I do: