You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very convenient to have these conformances, since non-empty collections could be initialized as naturally as the built-in collection types:
However, since ExpressibleByArrayLiteral and ExpressibleByDictionaryLiteral don't allow their initializers to fail, we would have to crash at runtime, which might not be desirable given the description of the library as a compile-time guarantee:
It would be very convenient to have these conformances, since non-empty collections could be initialized as naturally as the built-in collection types:
However, since
ExpressibleByArrayLiteral
andExpressibleByDictionaryLiteral
don't allow their initializers to fail, we would have to crash at runtime, which might not be desirable given the description of the library as a compile-time guarantee:or
Thoughts?
The text was updated successfully, but these errors were encountered: