Split classes into separate files?

Kevin Ottens ervin at kde.org
Wed Jan 22 06:35:42 UTC 2014


Hello,

On Wednesday 22 January 2014 00:30:19 David Gil Oliva wrote:
> I'm revising KCompletion and I have found that in kcompletion.h you can see
> the declaration of KCompletionBase (which is defined in a separate file)
> and KCompletionMatches (which is defined in kcompletion.cpp).
> 
> I think I have seen that in other frameworks classes are being split into
> separate files. Should I also do it with KCompletionBase and
> KCompletionMatches?

You can, I personally consider that good practice. But it's not mandatory, so 
up to you.

Regards.
-- 
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud supporter of KDE, http://www.kdab.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140122/188dcf4a/attachment.sig>


More information about the Kde-frameworks-devel mailing list