This is mostly focused on the user-facing API. Less so for the implementers. E.g. needing to remember the difference between `.read()`, and `.poll_read()` is not great. Node worked around this by providing `.read()` and `.readSync()`, which is similar.
-
-
Show this thread
-
I recently watched a C++ talk where they briefly mentioned* having "multiple methods sharing the same name, but having different signatures", and from in a way that would be fantastic! `read()` and `async read()` could then just work! * note: They felt negatively about it tho.
Show this thread -
I think the main point I'm trying to make here is: I wish the distance to switch between sync and async rust would be smaller. Instead of requiring both a keyword, and a method name change, it'd be nice if only the keyword was needed. Fewer things to remember.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.