On 12/21/2011 10:36 PM, Jonathan M Davis wrote:
In general, I agree that that's a good policy. How expensive would you
consider templated functions which aren't used to be with regards to that?
They don't cost nothing, since they still have to be lexed and parsed, but
they don't get fully compiled.

The test is to import the module without referencing any functions in it. Check if the resulting executable increases in size.

Note that a module can be split into sub-modules without changing the
interface for the user.

You mean create other modules that get publicly imported by one module? I do
think that sections of std.datetime would benefit from that.

Yes.

Reply via email to