OSNews article about C++09 degenerates into C++ vs. D discussion

Boris Kolar boris.kolar at globera.com
Wed Nov 22 01:20:17 PST 2006


== Quote from Steve Horne (stephenwantshornenospam100 at aol.com)'s article
> Most real world code has a mix of
> high-level and low-level.

True. It feels so liberating when you at least have an option to
cast reference to int, mirror internal structure of another class,
or mess with stack frames. Those are all ugly hacks, but ability to
use them makes programming much more fun.

The ideal solution would be to have a safe language with optional
unsafe features, so hacks like that would have to be explicitly marked
as unsafe. Maybe that's a good idea for D 2.0 :) If D's popularity
keeps rising, there will be eventually people who will want Java or
.NET backend. With unsafe features, you can really put a lot of extra
power in the language (opAssign, opIdentity,...) that may work or may
not work as intended - but it's programmer's error if it doesn't
(intimate knowledge of compiler internals is assumed).



More information about the Digitalmars-d mailing list