News for hackers. Stuff that matters.
Re:Get rid of those boolean function parameters (2015) by dhosek on Monday September 20, 2021 @11:44AM (#28595049)
Although, it doesn't always. For example,

calc_formula(1,2,true)

would show as

calc_formula(a: 1, b: 2, is_gain: true)

but

calc_formula(1,2,some_var)

shows as

calc_formula(a: 1, b: 2, some_var)

Although on the flip side, it creates an incentive for the developer to choose sensible names for variables, functions etc.

There are no comments on this comment yet.