▲ | OrderlyTiamat 5 days ago | |||||||||||||||||||||||||
If your function has a McCabe complexity higher than 1024, then boolean arguments are the least of your problems... | ||||||||||||||||||||||||||
▲ | crazygringo 5 days ago | parent [-] | |||||||||||||||||||||||||
Not really. Tons of well-written functions have many more potential code paths than that. And they're easy to reason about because the parameters don't interact much. Just think of plotting libraries with a ton of optional parameters for showing/hiding axes, ticks, labels, gridlines, legend, etc. | ||||||||||||||||||||||||||
|