News for hackers. Stuff that matters.
Re:A Rust Shaped Hole by flohofwoe on Thursday July 17, 2025 @05:18AM (#44591345)
> But it's not unreadable.

That's just because you got used to it ;) (same as with modern C++ really, if you've used C++ long enough you become blind to its problems)

Re:A Rust Shaped Hole by sagacity on Thursday July 17, 2025 @05:44AM (#44591486)
This is completely true.

"Regular" Rust and C++ is fairly readable, but a quick Google for "Higher Kinded Types in Rust" ends up with [0]:

  fn ap<A, B, F: Fn(&A) -> B>(x: &<Self as Plug<F>>::R, arg: &<Self as Plug<A>>::R) -> <Self as Plug<B>>::R
          where Self: Plug<A> + Plug<B> + Plug<F>;
[0] https://hugopeters.me/posts/14/