You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if I'm misunderstanding what the intention of async-let is. If I understand correctly, it's missing an implicit feature from let* in that every binding inherits the bindings before it.
The following example summarizes my current problem:
(async-let ((default-directory"/")
(pwd (shell-command-to-string"pwd")))
(message"%s" pwd)) ;; prints my current directory, instead of "/"
From what I understand from the implementation, each binding is expanded to
I believe this would resolve the example problem I listed. I haven't supplied an explicit fix for this problem because I don't know if we should fix current async-let or have a separate macro like async-expanding-let* instead.
BTW, this is a great package. I depend on it for my everyday work.
The text was updated successfully, but these errors were encountered:
FelipeLema
changed the title
async-let does not expand to let (and maybe it needs to)async-let does not expand to let* (and maybe it needs to)
Jan 29, 2021
Hey, there
I don't know if I'm misunderstanding what the intention of
async-let
is. If I understand correctly, it's missing an implicit feature fromlet*
in that every binding inherits the bindings before it.The following example summarizes my current problem:
From what I understand from the implementation, each binding is expanded to
Whereas I would expand it into something among these lines
I believe this would resolve the example problem I listed. I haven't supplied an explicit fix for this problem because I don't know if we should fix current
async-let
or have a separate macro likeasync-expanding-let*
instead.BTW, this is a great package. I depend on it for my everyday work.
The text was updated successfully, but these errors were encountered: