Coding for 20 years | Working for startups for 10 years | Team leader and mentor | More information about me: https://thevaluable.dev/page/about/
Twitter: @Cneude_Matthieu
A procedure and a function are not the same things in every programming language.
A procedure is just a block of code you execute (without returning anything), a function always return something.
The language Pascal for example makes a difference between the two. I know, not many people use Pascal anymore, but still.
In Mathematics, a function has a stricter definition and some functional programming languages try to stick to this definition (like Haskell for example).
I'm Rishav Raj, a developer and final-year mechanical engineering student who discovered his true interest in programming. I've always been fascinated by how computers and mobile applications respond
A procedure and a function are not the same things in every programming language.
A procedure is just a block of code you execute (without returning anything), a function always return something.
The language Pascal for example makes a difference between the two. I know, not many people use Pascal anymore, but still.
In Mathematics, a function has a stricter definition and some functional programming languages try to stick to this definition (like Haskell for example).
Thank you for explaining 😃