Seems everywhere you look these days people are talking about using value types and protocol oriented programming in Swift. I'm interested in using structs instead of classes for my model "objects". (I know they aren't technically objects if they are structs but model structs sounds weird)
While there are several strategies one could use to serialize structs in Swift, I am scratching my head trying to figure out if I could actually use structs like this with YapDatabase because the YapDatabaseSerializer takes an object as its argument.
Has anyone tried to use structs instead of classes with YapDatabase? Would it even be possible in the current implementation of Yap? If not, does anyone have ideas about how we could make Yap play nice with structs as our model "objects"?