On Thursday, 24 May 2018 at 00:53:00 UTC, Manu wrote:
I would REALLY love a way to implement an implicit cast that wasn't `alias this` based... for reasons that are NOT to @disable it :P

Well, explicit casts can be annoying at times when type conversion wouldn't mean loss of precision, but disabling an implicit cast on any type that has such casts right now means wrapping it in a struct and forwarding all calls to that type except for the type. At that moment you have no implicit casts. (Maybe some explicit ones if you forwarded those.) But this sounds like a lot of boilerplate and a worse debugging experience.

Reply via email to