best practices tutorial needed (for function signature, class vs struct, etc)
timotheecour
thelastmammoth at gmail.com
Sat Aug 25 13:37:26 PDT 2012
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