Type erasure and forgetful functors24 Oct 2019 (Note: this is an entry in my technical diary. There will likely be typos, mistakes, or wider logical leaps—the intent here is to “[let] others look over my shoulder while I figure things out.”)
Type erasure and forgetful functors, at least in terms of intuition, feel very similar.
Wonder if there’s a way to visualize this by considering
eraseToAnyPublisher as a sort of forgetful endofunctor into a subcategory of Swift (hand waving) that only contains