News for hackers. Stuff that matters.
Re:Rust: “Explain GATs Like I'm 5 Years Old” by ghostwriter on Monday November 07, 2022 @06:11PM (#33513852)
> you could make a generic `map` function that worked on any container type.

not only container types, it can be any type that has a consistent context of evaluation for the final value being calculated: "doing async IO", "doing optional presence", "doing potentially erroneous extraction", and so on. In that sense, "doing multiplicity of values" is the context expressing a container type you mentioned as an example.

There are no comments on this comment yet.