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

Procedure: 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.




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

Search: