When do you use a subroutine over a function?
Whenever I write a new procedure, I use the rules of thumb shown in figure 3.8 to decide whether to make it a function or a subroutine. Figure 3.8 Deciding when to use a subroutine over a function This is a simple decision-making process that you can follow. If you know your procedure will cause […]