From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Fri, 02 May 2008 08:49:24 BST." <20080502074924.E0F1C859C@okapi.maths.tcd.ie> From: Bakul Shah Date: Fri, 2 May 2008 01:42:24 -0700 Message-Id: <20080502084225.103D45B54@mail.bitblocks.com> Subject: Re: [9fans] A new language for Plan 9 Topicbox-Message-UUID: 9caaba0e-ead3-11e9-9d60-3106f5b1d025 On Fri, 02 May 2008 08:49:24 BST John Stalker wrote: > > To ensure programmers will use good style, Bentley will lack goto. To > > break out of nested loops, you can use the breakout statement. > > This worries me. When I need to implement a finite state autonomon I > usually use goto. For that purpose it is by far the clearest and least > error prone method C offers. How do I do this in Bentley? Infinite > loop, state variable and breakout? I would argue that that's less > clear and unless your compiler is very clever it will generate worse > assembly in this (common) case. If he provides proper tail-recursion or even a switch statment you can implement FSAs quite easily. Clearly he has a lot of enthusiasm but I don't understand why he is squandering it on implementing boring old language ideas. Why not a language for mashing tree structured data or graphs or for parallel programming or modelling physics of real objects or something. He'd learn even if he fails. Hoare's 1973 paper "Hints on Programming Language Design" might be relevant to what he is attempting (look for STAN-CS-73-403)