Online educator and mentor for Sr. JS developers
With 20+ years of dev experience, I'm an online educator, mentor, and consultant--teaching practical, advanced topics to developers like you on how to write: ✅ new AI/LLM features ✅ maintainable JS code ✅ scalable web apps ...yup that's about it! 🎤
Markdown supported · ⌘↵ to post
I think it could create extra confusion.
Also, the autoboxing thing you describe doesnt happen. If the thing isn't a promise, await doesn't make it a promise. It just does nothing.
Manik
I agree with Paul-Sebastian Manole here. Also let's not forget how the JavaScript work behind the scenes. Promises are sent to the event loop to be processed once the stack is clear. There is a reason async functions are different from synchronous code that we write.