3 ms·
They're included in Rust. But Rust of course feels very much like a strict-by-default Haskell in some ways. (Now with optional laziness.)
by Filligree 7y ago
They're included in Rust. But Rust of course feels very much like a strict-by-default Haskell in some ways.
(Now with optional laziness.)
- uryga 7y agoi had no idea rust supported laziness! how does that work?
- cies 7y agoI think he refers to async recently landing in Rust. Here the Rust book mentions it: > async bodies and other futures are lazy: they do nothing until they are run. https://rust-lang.github.io/async-book/03_async_await/01_chapter.html https://rust-lang.github.io/async-book/03_async_await/01_cha... I just read it, and thought it was odd. I don't understand how Rust's async relates to a laziness as in Haskell's laziness.
- steveklabnik 7y agoIterators are also lazy. All of these things build up some form of computation that doesn’t execute until later. Until then, they’re represented by some kind of data structure.