Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.python Subject: Re: Statements as expressions [was Re: Undefined behaviour in C] Date: Wed, 30 Mar 2016 15:26:38 +0100 Organization: A noiseless patient Spider Lines: 21 Message-ID: <87zitgujmp.fsf@bsb.me.uk> References: <87poug5t0c.fsf@nightsong.com> <1344e2bf-15d2-412e-9512-b0aba800dada@googlegroups.com> <56f880ba$0$1617$c3e8da3$5496439d@news.astraweb.com> <878u125ugc.fsf@nightsong.com> <720bdbcc-862d-425d-abc0-2dacaaf8f7d9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="9612"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jR4kdT88vEopXCpK0CILgoR5lhes3Z+k=" Cancel-Lock: sha1:S4+Q6fiqEQ3HUvMPn+PQXZnwt0k= sha1:+NXYE4ml+nGBXdHvYnMLvzGDRSg= X-BSB-Auth: 1.9247d00e368ef1b2aae4.20160330152638BST.87zitgujmp.fsf@bsb.me.uk Xref: csiph.com comp.lang.python:106076 Dennis Lee Bieber writes: > On Tue, 29 Mar 2016 20:14:02 -0700 (PDT), Rustom Mody > declaimed the following: > > >>Pascal ? C ? Python is a slide down because >>Pascal had the clear distinction of procedure and function > > That goes back to FORTRAN (in which one has SUBROUTINE subprocedures, > and FUNCTION subprocedures -- yes, that is how the standard document used > to define them), which quite predates Pascal. Strangely, the precursor to > Pascal -- ALGOL -- apparently used PROC for both procedures and > functions. Algol 60 used "procedure" but it maintained the distinction in that functions had (have?) a type and subroutines didn't (don't). Algol 68 uses PROC for both and the type VOID for procedures with no value. -- Ben.