Object Oriented Tricks: #3 Death By Arguments
Arun Sasidharan

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


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.