Is there an existing Protocol to constrain a generic parameter to only trivial types?

Even the name AnyObject is a bit of a wart, IMO. It would probably be more consistent to just call it Object.

1 Like