Hacker News new | past | comments | ask | show | jobs | submit login

Actually it's a procedure because it has a side-effect.



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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: