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: 10259a,626a0a064b320310 X-Google-Attributes: gid10259a,public X-Google-Thread: 114809,626a0a064b320310 X-Google-Attributes: gid114809,public X-Google-Thread: 103376,ea8ea502d35ca2ce X-Google-Attributes: gid103376,public X-Google-Thread: 1164ba,626a0a064b320310 X-Google-Attributes: gid1164ba,public X-Google-Thread: 103d24,626a0a064b320310 X-Google-Attributes: gid103d24,public X-Google-ArrivalTime: 2001-05-10 00:56:42 PST Path: newsfeed.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!logbridge.uoregon.edu!newsxfer.eecs.umich.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 07:28:34 GMT Organization: Dartmouth College, Hanover, NH, USA Message-ID: <9ddfv2$gl3$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> Reply-To: danfm@dartmouth.edu NNTP-Posting-Host: north-dhcp-221.dartmouth.edu X-Trace: merrimack.Dartmouth.EDU 989479714 17059 129.170.146.221 (10 May 2001 07:28:34 GMT) X-Complaints-To: abuse@Dartmouth.EDU NNTP-Posting-Date: 10 May 2001 07:28:34 GMT User-Agent: slrn/0.9.6.2 (Linux) Xref: newsfeed.google.com comp.lang.ada:7436 comp.lang.lisp:9903 comp.lang.smalltalk:9669 comp.lang.functional:5608 comp.lang.scheme:3759 comp.lang.perl:2760 Date: 2001-05-10T07:28:34+00:00 List-Id: Andreas Krennmair wrote: >The problem is that Lisp is in no way similar to a natural language. And >natural language can be understood easier than some functional, theoretical >stuff with a unique concept like Lisp. You've got at least three assumptions there, none of which I agree with. I don't see why a programming language should be similar to a natural language (the only sense in which they are both languages is that they have some form of grammar) and it takes quite a lot of arrogance to say that a programming language is harder to understand than a natural language or that the imperative paradigm is closer to the natural way of describing things for humans than the functional paradigm. Also, Lisp is hardly some functional thereotical stuff with a unique concept. >Don't get me wrong, Lisp is a great >language, and I personally find it quite exciting as four year Pascal and >two year C/C++ programmer, but it's hardly usable for teaching, because it >is so unique (well, you _could_ to functional programming in C, but it would >be considered bad style). What is *so* unique? Lisp is a label applied to a broad family of languages, not a single language. That alone takes away the uniqueness. Furthermore, the functional paradigm is hardly confined to the Lisp family. >I currently go to an Austrian school where mostly programming/CS/software >engineering-related things are taught (it's for 5 years, and you start >at an age of 14), Ouch. This is probably a bad idea... >> > Now look at it. Could a neophite with literally *zero* >> > experience in programming computers read it and stand a chance of >> > understanding what it does or how it does it? >> >> yes, yes >for my comment, see above. Lisp has hardly anything in common with natural >languages. Or could you express "My girlfriend's name is Suzy and her age >is 17" as readable as this in Lisp: >$girlfriend{'name'} = "Suzy"; >$girlfriend{'age'} = 17; Except that this is completely wrong. Your perl statements are imperative, not descriptive or even declarative. At least most languages in the Lisp family will let you write something close to: (with (she (my girlfriend)) (be (of name she) "Suzy") (be (of age she) 17)) Of course what this is supposed to mean is complete up to the programmer. That's aside from the fact that you chose an arbitrary sentence that isn't at all representative of natural languages. For a better exercise, take a few paragraphs from a book or better yet, record a phone conversation or radio broadcasts and come up with a formal notation that could be used to capture their meaning. >Of course, this is not the best example, since Perl has a syntax that is >not the optimum for beginners. Perl's syntax is the closest thing I've seen to a natural syntax in a programming language. Dan. -- Q: What's a WASP's idea of open-mindedness? A: Dating a Canadian.