Re:Go by Example: Timers and Tickers
by throwaway54-762 on Friday September 28, 2012 @05:19PM
(#4587844)
Rust (another "systems language of the future") has a lightweight syntax for spawned "tasks", I think. But I'm far from a Rust expert.
Re:Go by Example: Timers and Tickers
by burntsushi on Friday September 28, 2012 @08:22PM
(#4588416)
This is true. Rust also provides more compile time safety (a lot more actually), but it comes at the cost of complex semantics.
Re:Go by Example: Timers and Tickers
by thebigshane on Friday September 28, 2012 @04:13PM
(#4587571)
C# now has `async` and `await`, not the same thing, but similar.
Also I'm sure there's about a dozen C++ libraries that will do it.
I ask out of curiosity: are there other statically typed languages where you can do stuff like this? Java has Futures, but those are far more heavyweight. Clojure has concurrency constructs which are pretty close, but Clojure is dynamic. I only know a little bit of Haskell, so there might be something like this in there.