The Cyber Programming Language
fubark.github.io
The Cyber Programming Language
1–6 of 6 posts
Re: The Cyber Programming Language
#2Re: The Cyber Programming Language
#3Re: The Cyber Programming Language
#4Re: The Cyber Programming Language
#5One neat thing I see this has is colorless async: https://fubark.github.io/cyber/#colorless-async . However this is a work in progress as their async isn't multithreaded yet.
Re: The Cyber Programming Language
#6One neat thing I see this has is colorless async: https://fubark.github.io/cyber/#colorless-async . However this is a work in progress as their async isn't multithreaded yet.
Interesting, but I fail to see how it can work exactly. If there's a function awaiting something, how is the function called then? Will it look like calling any function, but it might not return immediately? But then there's also examples of calling aio.delay(1000) which does return immediately. I think my question is ultimately, what's the return type of a function containing an await?
After all, that's what "colorless" implies to me: it's possible to take a non-async function and make it async without having to change its callers. This suggests we don't change its return type.