Hi All, On Sun, Feb 5, 2012 at 2:12 AM, Martin Sustrik <[email protected]> wrote:
> On 04/02/12 02:30, john skaller wrote: > > I have just added a new section to the style guide "banning" the calling > > of public functions by public functions. Public functions are reserved > > for the public. > Good idea. +1 I don't think that's a good idea. Public functions comprise a public interface that is supposed to stay the same. So what is the point in banning their use in implementation code? From C++ perspective, you can simply move the functions implementing the functionality to the private section of your class - that way, they will remain hidden. Making something public and not allowing their use in implementation code suggests of code smells. - Best regards, Asif
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
