Re:Rust: “Explain GATs Like I'm 5 Years Old”
by bsaul on Monday November 07, 2022 @08:26AM
(#33505502)
If a typesystem has any impact on the popularity of a language, then i assume rust doesn’t want to copy too much of haskell and needs to know where to stop..
[ Parent
| on HN ]
Re:Rust: “Explain GATs Like I'm 5 Years Old”
by pjmlp on Monday November 07, 2022 @08:52AM
(#33505745)
Typescript.
As for Haskell, their motto is "avoid success at any cost" for a reason.
Re:Rust: “Explain GATs Like I'm 5 Years Old”
by gpderetta on Monday November 07, 2022 @09:08AM
(#33505932)
C++ sorta has the equivalent of this feature in the form of nested templates. C++ is kind of popular and rust wants to be a direct replacement.
Next step: template template parameters!
Re:Rust: “Explain GATs Like I'm 5 Years Old”
by kibwen on Monday November 07, 2022 @10:34AM
(#33507133)
The whole design of GATs is predicated on the notion that Rust doesn't want to go as far as Haskell does here. See boats' comment: https://news.ycombinator.com/item?id=33506540