From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Stalker To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: <3CB4093E-098C-4E6F-B843-7B65E4461D81@mac.com> References: <3CB4093E-098C-4E6F-B843-7B65E4461D81@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2330.1209714564.1@maths.tcd.ie> Date: Fri, 2 May 2008 08:49:24 +0100 Message-Id: <20080502074924.E0F1C859C@okapi.maths.tcd.ie> Subject: Re: [9fans] A new language for Plan 9 Topicbox-Message-UUID: 9ca58494-ead3-11e9-9d60-3106f5b1d025 > The idea is simple: indentation as block style. Religious matter. Do as you wish, but expect flames. > Another feature I hope to supply is bit arrays. ok > Bentley also will have nested functions, a Pascal-like for statement > (with variable steps instead of 1/-1), and a loop statement for > infinite loops. All languages have infinite loops, but most are just discreet about it. > 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. > Finally, there will be two modes: hosted and standalone. The > standalone keyword changes this. Hosted mode can access print to > stdout and stderr, read from stdin, new, renew (like realloc), delete, > and a string type. I don't understand. -- John Stalker School of Mathematics Trinity College Dublin tel +353 1 896 1983 fax +353 1 896 2282