Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could we consider auto awaiting with a . (besides accessing a promise) #16

Open
Turbine1991 opened this issue Apr 13, 2023 · 0 comments

Comments

@Turbine1991
Copy link

Just so we don't end up the the mess of C++ pointers vs references, I really belive we shouldn't fragment the accessor facilities.

Another benefit is accidentally accessing a promise with a . without await will continue working as expected.

My only concern is typechecking overhead however.

(await obj.funct)
obj->funct()
obj.funct()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant