Tuesday, July 17, 2012 [Tweets]

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

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment