3 ms·
Actually it's a procedure because it has a side-effect.
by anaphor 13y ago
Actually it's a procedure because it has a side-effect.
- dragonwriter 13y agoIn python, they are called "functions" whether or not they have side effects. (And, actually, in most programming languages I've seen that have different constructs called "function" and "procedure", the difference is that functions have a return value and procedures don't -- usually, both can have side effects.)
- anaphor 13y agoHave you ever used a functional programming language?