Path: csiph.com!goblin1!goblin3!goblin.stu.neva.ru!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Kaz Kylheku <157-073-9834@kylheku.com> Newsgroups: comp.compilers Subject: Re: Add nested-function support in a language the based on a stack-machine Date: Wed, 14 Mar 2018 00:07:39 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 13 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <18-03-060@comp.compilers> References: <6effed5e-6c90-f5f4-0c80-a03c61fd2127@gkc.org.uk> <18-03-042@comp.compilers> <18-03-049@comp.compilers> <18-03-055@comp.compilers> Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="97916"; mail-complaints-to="abuse@iecc.com" Keywords: C, design Posted-Date: 14 Mar 2018 00:42:06 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:2004 On 2018-03-13, Kartik Agaram wrote: > On Mon, Mar 12, 2018 at 8:09 PM, William Clodius wrote: >> Didn't Lisp have first order functions and closures in 58? If I remember >> the discussion of APT in the HOPL I conference proceedings correctly it >> surprisingly had the equivalent of structs. > > Lisp had first-class functions but closures require lexical scope, > which didn't land until Scheme in the '70s. Anonyous functions without environments are basically just function pointers. If those are first class functions, then C has first class functions.