Re: "procedure" vs. "function"

2015-04-19 Thread PMA
Andrew Bernard wrote: Yes, it is quite muddy! I just took a look at the Guile 2.0 reference manual. Generally they use procedure but the book also uses the term function interchangeably further on inside, so I suppose it does not matter so much! No doubt the book is written by a large team of

Re: "procedure" vs. "function"

2015-04-19 Thread PMA
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

Re: "procedure" vs. "function"

2015-04-19 Thread Andrew Bernard
Yes, it is quite muddy! I just took a look at the Guile 2.0 reference manual. Generally they use procedure but the book also uses the term function interchangeably further on inside, so I suppose it does not matter so much! No doubt the book is written by a large team of authors. An argument f

Re: "procedure" vs. "function"

2015-04-19 Thread Urs Liska
Am 19. April 2015 10:35:08 MESZ, schrieb Andrew Bernard : >Well if you consult the bible Structure and Interpretation of Computer >Programs by Abelson, Sussman, and Sussman, the term function is >strictly reserved for mathematical objects, and procedure is uniformly >used for what people loosely

Re: "procedure" vs. "function"

2015-04-19 Thread Andrew Bernard
Well if you consult the bible Structure and Interpretation of Computer Programs by Abelson, Sussman, and Sussman, the term function is strictly reserved for mathematical objects, and procedure is uniformly used for what people loosely call functions. As to the discussion about the distinction b

Re: "procedure" vs. "function"

2015-04-18 Thread Jacques Menu
Pascal, as many other languages, has its roots in Algol 60. In the latter, there was only the « procedure » keyword. You just prefixed the definition with a type to make it a function, such as: integer procedure foo (…) begin … foo := …;

Re: "procedure" vs. "function"

2015-04-18 Thread Wols Lists
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

Re: "procedure" vs. "function"

2015-04-18 Thread PMA
Wols Lists wrote: On 18/04/15 19:56, PMA wrote: AFAIK, of our major ancestor languages, only Pascal insisted on a literal working function-vs-procedure distinction. Did Wirth ever defend this insistence (as more than a track-keeping enforcer re value-outputting vs non-value-outputting code)? A

Re: "procedure" vs. "function"

2015-04-18 Thread J Martin Rushton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/04/15 21:28, PMA wrote: > J Martin Rushton wrote: > > > > FORTRAN also insists on the distinction (at least officially). In > FORTRAN you CALL procedures as a single statement whereas you > simply use functions in an expression. If you t

Re: "procedure" vs. "function"

2015-04-18 Thread Wols Lists
On 18/04/15 19:56, PMA wrote: > AFAIK, of our major ancestor languages, only Pascal insisted on a > literal working > function-vs-procedure distinction. Did Wirth ever defend this insistence > (as more > than a track-keeping enforcer re value-outputting vs > non-value-outputting code)? Actually, s

Re: "procedure" vs. "function"

2015-04-18 Thread PMA
J Martin Rushton wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/04/15 20:41, PMA wrote: PMA wrote: Jacques Menu wrote: Hello, Yes, historically a disctinction was made between the « sub-programs » that return a value and those that don’t, but the Scheme docs seem to use the ter

Re: "procedure" vs. "function"

2015-04-18 Thread J Martin Rushton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/04/15 20:41, PMA wrote: > PMA wrote: >> Jacques Menu wrote: >>> Hello, >>> >>> Yes, historically a disctinction was made between the « >>> sub-programs » that return a value and those that don’t, but >>> the Scheme docs seem to use the terms f

Re: "procedure" vs. "function"

2015-04-18 Thread PMA
PMA wrote: Jacques Menu wrote: Hello, Yes, historically a disctinction was made between the « sub-programs » that return a value and those that don’t, but the Scheme docs seem to use the terms function and procedure interchangeably. In C++, everything is a function : a procedure is merely a fu

Re: "procedure" vs. "function"

2015-04-18 Thread PMA
Jacques Menu wrote: Hello, Yes, historically a disctinction was made between the « sub-programs » that return a value and those that don’t, but the Scheme docs seem to use the terms function and procedure interchangeably. In C++, everything is a function : a procedure is merely a function tha

Re: "procedure" vs. "function"

2015-04-18 Thread David Nalesnik
Hi, On Sat, Apr 18, 2015 at 11:57 AM, Jacques Menu wrote: > Hello, > > Yes, historically a disctinction was made between the « sub-programs » > that return a value and those that don’t, but the Scheme docs seem to use > the terms function and procedure interchangeably. > > And the primitive-proc

Re: "procedure" vs. "function"

2015-04-18 Thread Jacques Menu
Hello, Yes, historically a disctinction was made between the « sub-programs » that return a value and those that don’t, but the Scheme docs seem to use the terms function and procedure interchangeably. In C++, everything is a function : a procedure is merely a function that returns a value of

Re: "procedure" vs. "function"

2015-04-18 Thread Paul Morris
> On Apr 18, 2015, at 11:21 AM, Urs Liska wrote: > > So the choice of these names is actually an inconsistency in LilyPond's > terminology? > > I'm asking this because I have just completed a tutorial about > define-music-function and its siblings, and I realized that I used the terms > funct

Re: "procedure" vs. "function"

2015-04-18 Thread David Nalesnik
On Sat, Apr 18, 2015 at 4:51 AM, Urs Liska wrote: > Hi all, > > I just stumbled over a terminology issue: are "procedure" and "function" > synonyms in Scheme or do they refer to different things? > > From my earliest experiences with programming I'd recall the difference to > be that functions re

Re: "procedure" vs. "function"

2015-04-18 Thread Thomas Morley
2015-04-18 17:47 GMT+02:00 Richard Shann : > On Sat, 2015-04-18 at 17:21 +0200, Urs Liska wrote: >> Am 18.04.2015 um 15:08 schrieb Richard Shann: >> > On Sat, 2015-04-18 at 13:11 +0200, Urs Liska wrote: >> >> >> >> >> >> Am 18. April 2015 12:15:08 MESZ, schrieb Richard Shann >> >> : >> >>> On Sat,

Re: "procedure" vs. "function"

2015-04-18 Thread Wols Lists
On 18/04/15 16:21, Urs Liska wrote: > So the choice of these names is actually an inconsistency in LilyPond's > terminology? > > I'm asking this because I have just completed a tutorial about > define-music-function and its siblings, and I realized that I used the > terms function and procedure in

Re: "procedure" vs. "function"

2015-04-18 Thread Richard Shann
On Sat, 2015-04-18 at 17:21 +0200, Urs Liska wrote: > Am 18.04.2015 um 15:08 schrieb Richard Shann: > > On Sat, 2015-04-18 at 13:11 +0200, Urs Liska wrote: > >> > >> > >> Am 18. April 2015 12:15:08 MESZ, schrieb Richard Shann > >> : > >>> On Sat, 2015-04-18 at 11:51 +0200, Urs Liska wrote: > H

Re: "procedure" vs. "function"

2015-04-18 Thread Urs Liska
Am 18.04.2015 um 15:08 schrieb Richard Shann: On Sat, 2015-04-18 at 13:11 +0200, Urs Liska wrote: Am 18. April 2015 12:15:08 MESZ, schrieb Richard Shann : On Sat, 2015-04-18 at 11:51 +0200, Urs Liska wrote: Hi all, I just stumbled over a terminology issue: are "procedure" and "function" s

Re: "procedure" vs. "function"

2015-04-18 Thread Michael Hendry
> On 18 Apr 2015, at 13:06, Brian Barker wrote: > > At 12:55 18/04/2015 +0100, Michael Hendry wrote: >> I think it was Pascal that introduced a distinction between a Procedure >> (which does something without returning a value) and a Function (which does >> something AND returns a value). > >

Re: "procedure" vs. "function"

2015-04-18 Thread Richard Shann
On Sat, 2015-04-18 at 13:11 +0200, Urs Liska wrote: > > > Am 18. April 2015 12:15:08 MESZ, schrieb Richard Shann > : > >On Sat, 2015-04-18 at 11:51 +0200, Urs Liska wrote: > >> Hi all, > >> > >> I just stumbled over a terminology issue: are "procedure" and > >"function" > >> synonyms in Scheme

Re: "procedure" vs. "function"

2015-04-18 Thread Brian Barker
At 12:55 18/04/2015 +0100, Michael Hendry wrote: I think it was Pascal that introduced a distinction between a Procedure (which does something without returning a value) and a Function (which does something AND returns a value). Really?! Pascal: published 1970 Fortran II (included SUBROUTINE

Re: "procedure" vs. "function"

2015-04-18 Thread Michael Hendry
> On 18 Apr 2015, at 11:15, Richard Shann wrote: > > On Sat, 2015-04-18 at 11:51 +0200, Urs Liska wrote: >> Hi all, >> >> I just stumbled over a terminology issue: are "procedure" and "function" >> synonyms in Scheme or do they refer to different things? > The Guile reference manual uses the t

Re: "procedure" vs. "function"

2015-04-18 Thread Urs Liska
Am 18. April 2015 12:15:08 MESZ, schrieb Richard Shann : >On Sat, 2015-04-18 at 11:51 +0200, Urs Liska wrote: >> Hi all, >> >> I just stumbled over a terminology issue: are "procedure" and >"function" >> synonyms in Scheme or do they refer to different things? >The Guile reference manual uses

Re: "procedure" vs. "function"

2015-04-18 Thread Richard Shann
On Sat, 2015-04-18 at 11:51 +0200, Urs Liska wrote: > Hi all, > > I just stumbled over a terminology issue: are "procedure" and "function" > synonyms in Scheme or do they refer to different things? The Guile reference manual uses the term procedure > > From my earliest experiences with programm

"procedure" vs. "function"

2015-04-18 Thread Urs Liska
Hi all, I just stumbled over a terminology issue: are "procedure" and "function" synonyms in Scheme or do they refer to different things? From my earliest experiences with programming I'd recall the difference to be that functions return a value and procedures don't. But that's clearly not t