On 2011-12-22 12:01, Somedude wrote:
Le 22/12/2011 11:40, Jacob Carlborg a écrit :
Yeah, I don't get this. Most modules in Phobos are too large, in my
opinion.
It largely is a matter of taste, I think. There are advantages in
minimizing the size of files but there are also advantages in minimizing
the number of files.
But for datetime.d, it has largely gone beyond my own point of
acceptability (which is about 5,000 lines, if that means anything).
If there are too many files you divide them up in several packages. If
there are too many packages you divide them up in several sub-packages
or libraries/projects.
This approach should be taken through out the whole code. From
statements, via functions, classes, modules and packages, up to
libraries/projects.
--
/Jacob Carlborg