Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!nerds-end From: Alex McDonald Newsgroups: comp.compilers Subject: Re: Have we reached the asymptotic plateau of innovation in programming languages Date: Sun, 10 Jun 2012 13:36:21 -0700 (PDT) Organization: Compilers Central Lines: 40 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <12-06-029@comp.compilers> References: <12-03-012@comp.compilers> <12-03-014@comp.compilers> <12-06-008@comp.compilers> <12-06-010@comp.compilers> <12-06-013@comp.compilers> <12-06-014@comp.compilers> NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: leila.iecc.com 1339395057 52442 64.57.183.58 (11 Jun 2012 06:10:57 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Mon, 11 Jun 2012 06:10:57 +0000 (UTC) Keywords: design Posted-Date: 11 Jun 2012 02:10:57 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com X-Received-Bytes: 2408 Xref: csiph.com comp.compilers:690 On Jun 7, 1:21 pm, Johann 'Myrkraverk' Oskarsson wrote: > Joshua Cranmer writes: [snip] > > <><><> > > Another point to make. Why do we assign from right to left? Is it in > any way natural? What's wrong with > > a + b --> c "a plus b assigned to c" > > instead of > > c <-- a + b "c becomes a + b?" > > The more I think about it, I believe the former construct is a bit more > natural since we read from left to right. However, I'd want to see or > work on a non-trivial project in such a language to make up my mind. But we already have languages that support a b + c ! ( stack based, for bang read store ) or ADD A TO B GIVING C. I'll let you guess which languages support these constructs. > > For an Arabic programming language, all bets are off. ! c + b a My first example reversed. The arity of the operators make it easy to parse left to right too; "Store in c the sum of a and b". It would be a trivial modification to a stack-based compiler to parse right to left.