And Pascal! And Yes, they separate this concern too!
I love this description from the DelphiBasics site
"Delphi provides 2 types of subroutine - Procedures and Functions. Functions are the same as procedures except that they return a value in addition to executing statements. A Function, as its name suggests, is like a little program that calculates something, returning the value to the caller. On the other hand, a procedure is like a little routine that performs something, and then just finishes."
Delphi is still alive you know. Like procedures and functions?
And Pascal! And Yes, they separate this concern too!
I love this description from the DelphiBasics site
"Delphi provides 2 types of subroutine - Procedures and Functions. Functions are the same as procedures except that they return a value in addition to executing statements. A Function, as its name suggests, is like a little program that calculates something, returning the value to the caller. On the other hand, a procedure is like a little routine that performs something, and then just finishes."
I'll update the post, thanks for the reminder!
You are welcome. Good read btw :)