11
bororo
6y

The difference between procedures and functions never troubled me. Until it did and now I'm just thinking it for the past hour! Here it is: Procedures perform some logic while functions (like in math) return a value. Daaaamn!

Comments
  • 0
    You can return values with procedures in assembly and write functions in Python which don't return anything.

    I don't think this makes a lot of sense outside of functional programming.
  • 0
    @deadlyRants of course you "can" but the purist way of thinking it is you shouldn't!
  • 1
    In Java I write methods 🤗🙄
  • 2
    For me the difference simply is that procedures can have side effects
Add Comment