How long have you been using the .await
syntax?
On and off playing with it since it became available in nightly, only one real but tiny project.
What code are you working on? How many lines of code? How complex? How old is the codebase?
A small service used in house not facing the internet for some UDP packet processing. Currently only 2100 lines of code. I previously wrote it using “stable” future syntax, now converted to .await
Otherwise just experimenting and for personal stuff.
What environment are you editing the code in? Do you have .await
syntax highlighting?
Vim, no highlighting yet, maybe it’s already available, I didn’t bother yet to search.
Summarize what happened, both the good and the bad.
I’m really pleasantly surprised! The code using the .await
syntax feels more easy to read and understand, even without syntax highlighting. I added a blank line here and there to catch the attention, but I expect that with highlighting the await
points will be quick to spot in any way.
I feel that I very quickly got accustomed to await
being a new keyword, and the .await
syntax feels all fine, I never stumbled upon a thought like “oh wait, this looks like a field, but is it really?”
Guessing from how quickly I got accustomed with .await
I strongly feel that it is the way to go!
Compiler error messages can improve, as always. I can’t say whether the error messages were more or less helpful compared to current “stable-style” futures.
I really enjoy using .await