Why is `scope` planned for deprecation?
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sun Nov 16 11:24:49 PST 2014
On 11/16/2014 10:52 AM, "Ola Fosheim Grøstad"
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> I think C is pretty close to a 98% solution for system level programming.
Not at all in my view. It has two miserable failures:
1. C's Biggest Mistake
http://www.drdobbs.com/architecture-and-design/cs-biggest-mistake/228701625
This made C far, far more difficult and buggy to work with than it should have been.
2. 0 terminated strings
This makes it surprisingly difficult to do performant string manipulation, and
also results in a excessive memory consumption.
> Granted, it relies on macros to reach that.
And it's a crummy macro system, even for its day.
My above remarks should be put in context of when C was designed. As with the
Titanic, it is unfair to apply modern sensibilities to it. But if we were to, a
vast amount of C could be dramatically improved without changing its fundamental
nature.
More information about the Digitalmars-d
mailing list