Fixing C's Biggest Mistake

H. S. Teoh hsteoh at qfbox.info
Tue Dec 27 17:37:42 UTC 2022


On Mon, Dec 26, 2022 at 04:38:33PM -0800, Walter Bright via Digitalmars-d wrote:
> C uninitialized variables was another fountain of endless and hard to
> track down problems. D initializes them by default for a very good
> reason.

C's manual memory management is another fountain of endless hard to
debug pointer bugs and pernicious memory problems.  Manual memory
management requires absolute consistency and utmost precision, two
things humans are notoriously bad at.  In spite of some people having
knee-jerk reactions to the GC, D having one has been a big saver of
headaches in terms of the amount of time and effort spent writing and
debugging memory management code.


T

-- 
Дерево держится корнями, а человек - друзьями.


More information about the Digitalmars-d mailing list