best practices tutorial needed (for function signature, class vs struct, etc)

notna notna.remove.this at ist-einmalig.de
Wed Aug 29 13:53:13 PDT 2012


You may want to try/read this:

http://ddili.org/ders/d.en/

Thanks to Ali for this fantastic book!!! Looking forward for the next 
translations.

On 25.08.2012 22:37, timotheecour wrote:
> Is there a "best practices" page on this site to use as reference for
> those FAQ, that AFAIK are not in the docs:
>
> * when to use class vs struct
> (eg
> http://stackoverflow.com/questions/11058906/struct-vs-class-for-writing-d-wrappers-around-foreign-languages)
>
>
> * what's the standard signature for opEquals ()
> (ef
> http://forum.dlang.org/thread/ewhhutwupqxbepqyzhlr@forum.dlang.org#post-mailman.1402.1345925314.31962.digitalmars-d:40puremagic.com)
>
>
> * same for toString(), this(), etc.
>
> * to use or not to use @property
>
> etc..
>
> I understand it's on a case by case but I would hope there are certain
> rules one can follow in 99% cases.



More information about the Digitalmars-d mailing list