Comment

Comment by nicoburns

I think the easiest way to understand it is this:

Suppose you have a concrete type like

    Vec<i32>
Regular generics enable you to make the contained type generic, so you have:

    Vec<T>
where T can be i32, u32, String, etc. GATs allow you to make the container generic. So you can have:

    T<i32>
where T might be Vec, Option, Box, etc.
parent nicoburns 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton