Hi,
Native swift types like Array only conform to Codable when their elements are Codable.
It looks like Graph doesn't have any special need for being Codable.
Would it be possible to make Graph conform to Codable only when its vertices are? I've a use case where I'm not interested in the Graph being codable and adding conformance to the vertex type would be a lot of work.
Hi,
Native swift types like
Arrayonly conform toCodablewhen their elements areCodable.It looks like
Graphdoesn't have any special need for beingCodable.Would it be possible to make
Graphconform toCodableonly when its vertices are? I've a use case where I'm not interested in theGraphbeing codable and adding conformance to the vertex type would be a lot of work.