- Pitch: Make CodingUserInfoKey.init(rawValue:) non-failable

I don't see why CodingUserInfoKey.init(rawValue:) is failable; I checked the implementation and it never returns nil, and it's trivial. If you are putting some custom data in the user info, you need to force-unwrap even though it will never be nil. Shouldn't we fix this?

1 Like

A non-failable initializer could be added:

2 Likes