3 ms·
Scala guy here. This kind of thing is useful - I'm happy to pay the costs of garbage collection so I don't need it for ownership, but for separating out async o
by lmm 12y ago
Scala guy here. This kind of thing is useful - I'm happy to pay the costs of garbage collection so I don't need it for ownership, but for separating out async operations from sync operations, or database-transactional operations from non-database operations, it's great to be able to represent that difference in the type system (and without a huge syntactic overhead). But then if you want to abstract over types like MaybeOwned, you need higher-kinded types to be able to work with them effectively. Has Rust got any further towards implementing those?
- mhaymo 12y agoUnfortunately I don't think higher-kinded types are planned for Rust 1.0. See the rfc: https://github.com/rust-lang/rfcs/issues/324 https://github.com/rust-lang/rfcs/issues/324 and this HN thread: https://news.ycombinator.com/item?id=7997926 https://news.ycombinator.com/item?id=7997926
- Argorak 12y agoThey plan an aggressive release schedule, though: http://blog.rust-lang.org/2014/09/15/Rust-1.0.html#release-process http://blog.rust-lang.org/2014/09/15/Rust-1.0.html#release-p... So they could come in one of the post 1.0 releases and that could possibly be soon.