parameters

Things I Learnt The Hard Way - Don't Use Booleans As Parameters

0 minute read Published: 2019-06-23

When you're designing a function, you may be tempted to add a flag (a parameter in a function that it is a boolean). Don't do this.