From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107f24,626a0a064b320310 X-Google-Attributes: gid107f24,public X-Google-Thread: f4fd2,626a0a064b320310 X-Google-Attributes: gidf4fd2,public X-Google-Thread: 103d24,626a0a064b320310 X-Google-Attributes: gid103d24,public X-Google-Thread: 1164ba,626a0a064b320310 X-Google-Attributes: gid1164ba,public X-Google-Thread: 114809,626a0a064b320310 X-Google-Attributes: gid114809,public X-Google-Thread: 10259a,626a0a064b320310 X-Google-Attributes: gid10259a,public X-Google-Thread: 103376,ea8ea502d35ca2ce X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-10 02:00:14 PST Path: newsfeed.google.com!sn-xit-03!supernews.com!freenix!sunqbc.risq.qc.ca!howland.erols.net!bloom-beacon.mit.edu!news.bu.edu!newshost.Dartmouth.EDU!danfm From: danfm@dartmouth.edu (FM) Newsgroups: comp.lang.ada,comp.lang.lisp,comp.lang.smalltalk,comp.lang.basic,comp.lang.functional,comp.lang.scheme,comp.lang.perl Subject: Re: Beginner's Language? Date: 10 May 2001 08:08:13 GMT Organization: Dartmouth College, Hanover, NH, USA Message-ID: <9ddi9d$cqq$1@merrimack.Dartmouth.EDU> References: <9cukad$nn68@news-dxb> <9d6b6e$1bt$1@nh.pace.co.uk> <87snihxiwc.fsf@frown.here> <9dbi83$sji$1@nh.pace.co.uk> <87heyu7cqd.fsf@frown.here> <9dc20p$hh15e$1@ID-37382.news.dfncis.de> <9dclnt$9ic1@news.cis.okstate.edu> Reply-To: danfm@dartmouth.edu NNTP-Posting-Host: north-dhcp-221.dartmouth.edu X-Trace: merrimack.Dartmouth.EDU 989482093 13146 129.170.146.221 (10 May 2001 08:08:13 GMT) X-Complaints-To: abuse@Dartmouth.EDU NNTP-Posting-Date: 10 May 2001 08:08:13 GMT User-Agent: slrn/0.9.6.2 (Linux) Xref: newsfeed.google.com comp.lang.ada:7446 comp.lang.lisp:9913 comp.lang.smalltalk:9677 comp.lang.functional:5614 comp.lang.scheme:3766 comp.lang.perl:2765 Date: 2001-05-10T08:08:13+00:00 List-Id: David Starner wrote: >On Wed, 09 May 2001 18:01:10 -0500, Sashank Varma wrote: >> can you provide some evidence that: >> >> (1) any standard general-purpose programming languages resemble natural >> language at all, that there is some metric of natural language-ness >> by which they can be ordered, and that wirth-style languages score >> higer on this metric than lisp? >> >> (2) the degree to which a programming language resembles natural >> language predicts the ease with which it will be learned? > >Tell me what > !bbz#,^az@bz, >does. Depends on the language. Give me the language spec or a reference implementation. >Then tell me what > > OPEN FILE ARGUMENT 2 AS 2 > BEGIN LOOP > LOAD FILE ARGUMENT 1 INTO BUFFER > COPY BUFFER TO 2 > FINISH LOOP >does. Same here. >If I came upon the first, I would give up. The second, anyone can >probably get some idea of basically what it's doing. For a new >student, knowing that they aren't totally lost can be a huge >confidence builder. It can also spawn a huge number of unwarranted assumptions that will plague the process of learning. They will have to learn to deal with the rigors of a formal grammar at one point or another. The problem with the above grammar, as far as I can infer from the code segment, is that it's terribly complicated if you try to specify any substantial subset of it. >As for lisp itself, just from the name, what does defun or cadar >do? What do FUNCTION, PROCEDURE and BEGIN do? None of them does anything remotely close to what anyone would be able to infer from one's knowledge of English alone >I've seen 2 + 2 since >the first days of school. Why (+ 2 2)? Learning a new vocabulary, >a new equation syntax is not what you want to be teaching when you >have so much else to teach. What equation syntax? Lisp doesn't have equations as part of the language. Or algebra, for that matter. I'm rather used to writing ab instead of a * b and how would you support that? Allow only single-character identifiers? >> (if you thinking i'm picking nits, note that i've granted you the >> implicit assumption that there is a singular quality shared by all >> natural languages, a chomsky-esque universal grammar perhaps, that i >> could have also questioned.) > >That's a theoritical assumption. How about "The vast majority of the >people who are going to be learning computer programming know an >Indo-European language, Russian, Chinese or Japanese." I don't know how many of the above languages you can speak, but there are enormous differences among them. Dan. -- What an author likes to write most is his signature on the back of a cheque. -- Brendan Francis