lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "procedure" vs. "function"


From: PMA
Subject: Re: "procedure" vs. "function"
Date: Sun, 19 Apr 2015 10:20:02 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101227 Iceape/2.0.11

Wols Lists wrote:
On 18/04/15 22:11, PMA wrote:
Aha.  So the improper-er their code got, the tougher time
compilers had trying to -- as Martin says -- "throw it out".

All told, is there now any real need _not_ to use the terms
"function" and "procedure" interchangeably?  That is, any
real need to try to enforce such a distinction?  The terms
are conflated, everybody knows, and there's no problem.

(No response expected -- at this point I'm just ranting.)

Except to me, the terms "function" and "procedure" are NOT the same
thing :-)

A function has a return value, a subroutine does not. A procedure can be
either.

Cheers,
Wol

And that seems rightly to summarize common usage -- in people
speech, anyway.  Maybe, if you're a new programming language,
survival will hinge more on your _exception_ to common usage.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]