• Functions are brilliant ways of keeping your code organized, and preventing you from writing the same code over and over again for one task. In general, using functions is a much much better idea than *not* using them. There are at least two reasons you might not use them. 1) If you only need the code once, obviously it doesn't require its own function. 2) Function calls require a bit of memory overhead and processor time, so if you're trying to make a *really* optimized program, you may want to avoid them (a better option would be to use inline functions:

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy