www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11710] New: dmd samples are legacy


           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

--- Comment #0 from SHOO <zan77137 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 /

Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 07 2013