[Issue 11710] New: dmd samples are legacy
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 7 10:28:57 PST 2013
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 at puremagic.com
ReportedBy: zan77137 at nifty.com
--- Comment #0 from SHOO <zan77137 at nifty.com> 2013-12-07 10:28:53 PST ---
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: -------
More information about the Digitalmars-d-bugs
mailing list