Tuesday, July 17, 2012

Boolean Trap

Ariya Hidayat (via John Carmack):

For this particular discussion, I’ll pick my favorite API design mistake: boolean trap. On this topic, the above API Design Principle wiki page says that

it’s almost invariably a mistake to add a bool parameter to an existing function

Comments RSS · Twitter

Leave a Comment