4 ms·
Having unit testing built-in to the programming language and tooling is a huge plus, absolutely. I don't know who originally came up with this, but I swear, it
by jchw 3y ago
Having unit testing built-in to the programming language and tooling is a huge plus, absolutely. I don't know who originally came up with this, but I swear, it would be worth some recognition :) (And thankfully, whoever did originally come up with this idea, it has been copied a ton by the recent crop of programming language designs.)
- abecedarius 3y agoThe E language supported doctests when I came to it in the 90s: http://erights.org/elang/tools/updoc.html http://erights.org/elang/tools/updoc.html It's the earliest I'm aware of.
- WalterBright 3y agoQuite a few D features have made it into other languages: 1. integrated documentation 2. unit tests 3. 1_000_000 literals 4. ranges 5. compile time function execution 6. static if
- pjmlp 3y agoUnless there is a time machine to have D come up before Smalltalk and Common Lisp/Interlisp-D, it definitely did not do 1, 2 and 3 as influence to other languages.
- WalterBright 3y agoThose languages have indeed been around decades before D. But somehow those features did not move into the general language community until after D was very successful with them and popularized those features in a modern language. BTW, the 1_000_000 specifically came from Ada 1983.
- pjmlp 3y agoThe agile movement is what popularised them, driven by key figures in the Smalltalk and Lisp community, pushing them via Java, Ruby and Python. All of them predating D.