return statements in awaitLet are bad #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There should be a warning or error when calling
(return ...)in the body of an awaitLet, because those returns are not operating in the simulated context of the function you're writing. They're happening in the generatedthen()and making the types not unify.Maybe an alternate fix would be to give the generated
then()a return:Null? But then you couldn't make an async function return something through awaitLet.