# Most coveted Rust features

**URL:** <https://users.rust-lang.org/t/most-coveted-rust-features/324>\
**Category:** uncategorized\
**Created:** [February 13, 2015, 3:14pm UTC](https://users.rust-lang.org/t/most-coveted-rust-features/324 "2015-02-13T15:14:47Z")\
**Posts on this page:** 1\
**Showing post:** 67

<div class="post-metadata">

**Author:** ![shelby3](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/shelby3/32/2381_2.png) [@shelby3](https://users.rust-lang.org/u/shelby3)\
**Post date:** [April 27, 2016, 10:59am UTC](https://users.rust-lang.org/t/most-coveted-rust-features/324/67 "2016-04-27T10:59:13Z")

</div>

> [@keean](#):
>
> I don't see how they [HKT] are required for iterators at all (they are not). The one use case for lazy streams is because of Rust lifetimes and is not a normal issue with parametric types. It turns out you would like to have an associated type with a parametric lifetime, which means the associated type itself is higher kinded (lifetime -\> type) but no higher kinded types are needed in function signatures. As you are not interested in lifetimes, you should just assume HKT are not needed for Iterators (I don't think C++ has HKT, so iterators don't require them).

Agreed. I was having a similar realization (as I was sleeping) that the only reason [we need HKT](https://users.rust-lang.org/t/does-rust-really-need-higher-kinded-types/5531) is for compiler checked lifetimes.

And I add the thought that the we don't need the compiler to check lifetimes where we are using proper high-level reasoning to encapsulate lifetimes, e.g. the inversion-of-control in my prior post using stackless coroutines so the lifetime is encapsulated in the `Enumerable::fold` instance and then enforcement that `fn(B, A) -> Option<B>` is a pure function so it can't leak the resource lifetime.

---

_[View the full topic](https://users.rust-lang.org/t/most-coveted-rust-features/324)._
