3 ms·
procedure vs function is weird too. And the period required at the end of the program. I remember learning Pascal and C around the same time coming from BASIC
by donio 5y ago
procedure vs function is weird too. And the period required at the end of the program.
I remember learning Pascal and C around the same time coming from BASIC and assembly and Pascal didn't seem particularly easier only more verbose. New concepts like types and pointers were much more of a hurdle than syntax.
- jacquesm 5y agoProcedure: something that has only side effects. Function: something that may have side effects but that also returns a value. Pure Function: something that only returns a value, and has no side effects. That's how I always understood the terms.