On 15/03/2015 05:06, Walter Bright wrote:
In D we have some implicit casts also because the "cast(int)x" syntax is
dangerous. But now we can write safe casts with the "int(x)" syntax,
so there's
less need of naked implicit casts.

Again, too many casts can cause bugs.

You can have safe wrappers for casts. If you don't want to change the type, use something like std.conv.signed. Isn't that safe?

Reply via email to