Bug 11710 – dmd samples are legacy

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-07T10:28:53Z
Last change time
2024-12-13T18:15:01Z
Assigned to
No Owner
Creator
SHOO
Moved to GitHub: dmd#17631 →

Comments

Comment #0 by zan77137 — 2013-12-07T10:28:53Z
Because update is delayed for the accompanying sample of dmd, it shows very old-fashioned codes. Today, I saw the example that held a bad impression for the whole D language to see this sample codes. It is to be very regretted that D language itself was judged from such a trivial things. To avoid this, it is necessary to discard samples or to make better codes. I hope the sample codes appropriate to say "That's the code of the D Programming Language!" Specifically, I think that improvement is necessary in the following points: * Don't depend on the module of the C language as much as possible. * Signature of the main function; `void main(string[] args)` * To use foreach for loops. * Don't use deprecated modules. * Use inferences / Use enum for constant numbers / Use scope guard statements / etc.
Comment #1 by robert.schadek — 2024-12-13T18:15:01Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17631 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB