On Sat, 20 Dec 2014 18:19:21 +0000 Jonathan Marler via Digitalmars-d <[email protected]> wrote:
> > we can't make `cast` less powerful now, but what we surely > > shouldn't do > > is making it more poweful. > > You're right we can't make it less powerful because it's > necessary. If you have an idea on how D could get rid of it we > would all love to hear it:) something like modula's "system" module: if you need `cast`, or pointers, or other "low-level" things, you should import "system" module. and you HAVE to write `system.cast(...)`. make it cumbersome! let `to!XXX` do the work, with all it's checks. making unsafe features easier to use is a way to spread their usage, and i see it as a "generally bad thing".
signature.asc
Description: PGP signature
