Implicit conversion with auto constructors

Hi @elhoov. This idea has been suggested many times. It is usually rejected very quickly. However, this thread is interesting because it explores many changes that would need to be performed in the language. I think it's a must-read for whoever is looking after implicit number conversion.

On top of that, Martin is right: Swift comes with many ExpressibleBy...Literal protocols for the last use case you suggest.

4 Likes