Hacker News new | ask | show | jobs
by anaphor 4445 days ago
Actually it's a procedure because it has a side-effect.
1 comments

In 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.)
Have you ever used a functional programming language?