News for hackers. Stuff that matters.
Re:Goodbye, Clean Code by ReleaseCandidat on Friday December 08, 2023 @04:25AM (#38566995)
> You get haskell type system

No. When trying to use Rust's traits like Haskell you learn really fast why higher kinded types are needed.

Re:Goodbye, Clean Code by hiAndrewQuinn on Friday December 08, 2023 @05:03AM (#38567214)
Oh, wait, does Rust not have kinds? That's a bummer.
Re:Goodbye, Clean Code by zozbot234 on Friday December 08, 2023 @09:39AM (#38569557)
Rust has GAT's which have the same expressivity as HKT's. But many Haskell patterns turn out to be unidiomatic in Rust due to extra overhead. (For instance Rust has multiple function-like traits that access their environment differently. There's no equivalent to this in Haskell of course; GC and default boxing choices for Haskell types obviate the issue, but this is not zero cost.)
Re:Goodbye, Clean Code by adastra22 on Saturday December 09, 2023 @04:54AM (#38580353)
What is Rust missing out on?