digitalmars.D.bugs - [Issue 11710] New: dmd samples are legacy
- d-bugmail puremagic.com (31/31) Dec 07 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11710
https://d.puremagic.com/issues/show_bug.cgi?id=11710 Summary: dmd samples are legacy Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: zan77137 nifty.com 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. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 07 2013