[Off-Topic] John Carmack's point of view on GC and languages like JavaScript

H. S. Teoh hsteoh at qfbox.info
Wed Aug 10 21:51:21 UTC 2022


On Wed, Aug 10, 2022 at 09:33:27PM +0000, monkyyy via Digitalmars-d wrote:
[...]
> If I look at some of the old std code the only explaination for why
> some of it is so terrible is that it was written before there were
> good d programmers
[...]

Don't forget also that D has changed a lot since its beginning. The
language we have today is very different from the language back then
when some of this code was originally written. Back then, a lot of D's
powerful features did not exist yet, so what was considered good style
back then is very different from what's considered good style today. A
lot of things possible today were not possible back then, so the old
code had to be written under different constraints, and could not have
taken advantage of the advances in the language that we have today.

For example, the earliest versions of D did not have templates, static
if's, CTFE, or compile-time introspection, which today are a large part
of what defines D.  Can you imagine what kind of code you had to write
back then, compared to what we can write today?


T

-- 
Winners never quit, quitters never win. But those who never quit AND never win are idiots.


More information about the Digitalmars-d mailing list