JARMourato / Kodable

A supercharged extension of Codable
MIT License
84 stars 6 forks source link

KodableTransformables Memory Management #23

Open matolah opened 9 months ago

matolah commented 9 months ago

Having KodableTransformable as a class may result in unexpected behaviors, such as the one in the screenshot below:

Screenshot 2023-12-04 at 2 25 36 PM

Properties wrapped in Coding are always reference typed, which causes extra memory management work when dealing with structs. Ideally, KodableTransformable should be a struct.

rogerluan commented 9 months ago

🔥

JARMourato commented 9 months ago

@matolah let me know when/if you have a proposed solution :)