>
> Niklas Keller wrote:
> > I'm not sure on the boolean through, I think a new function might be
> better.
>
> In this point I desagree.
> I think that boolean is the best way, mainly to avoid a new function
> on userland.
> It's like an "extension" for gettype(), and make senses just extend it.


The issue is that it's not clear what this boolean means just from reading
the code.
If you follow Clean Code, you shouldn't have something like that, only in
very, very rare cases.

Reply via email to