News for hackers. Stuff that matters.
Re:Get rid of boolean function parameters by jtheory on Monday June 15, 2015 @08:07AM (#9718802)
I'm mostly coding in Java, which doesn't have named params... but I don't like either extra variable declarations just for this, nor mysterious booleans.

My current habit is to use comments for non-enforced named params; e.g.,

   fetchLatestFoo( long barId, false/*fetchContent*/ );
No compile-time checking, etc., but it still serves the purpose.

There are no comments on this comment yet.