Object Oriented Tricks: #3 Death By Arguments
Arun Sasidharan
56013

Regarding passing multiple bools, how does passing a collection of named flags that can be merged with boolean operations relate?

e.g.

FuncA ( CollectionOfFlags.FlagA | ( CollectionOfFlags.FlagB & CollectionOfFlags.FlagC ))

With the definition being something to the effect of:

FuncA ( CollectionOfFlags currentStatus )

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.