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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cced0e2ac94722f3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.73.229 with SMTP id o5mr7090517pbv.7.1325956268497; Sat, 07 Jan 2012 09:11:08 -0800 (PST) Path: lh20ni153161pbb.0!nntp.google.com!news1.google.com!postnews.google.com!m4g2000vbc.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Ada2012 : Expression functions and extended return statements Date: Sat, 7 Jan 2012 09:10:58 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <26f343ea-d694-4089-b594-f32b471db3a4@m4g2000vbc.googlegroups.com> <50ec6d9a-5062-477f-826f-239fd2712a09@f11g2000yql.googlegroups.com> NNTP-Posting-Host: 86.163.248.186 Mime-Version: 1.0 X-Trace: posting.google.com 1325956261 27639 127.0.0.1 (7 Jan 2012 17:11:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 7 Jan 2012 17:11:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m4g2000vbc.googlegroups.com; posting-host=86.163.248.186; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALENKRC X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0) Gecko/20100101 Firefox/10.0,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-01-07T09:10:58-08:00 List-Id: On Jan 7, 12:22=A0pm, Simon Wright wrote: > Martin writes: > > On Jan 7, 1:50=A0am, "Randy Brukardt" wrote: > >> "Martin" wrote in message > > >>news:a40448ab-4508-4861-99ae-1a7b63d59f69@ck5g2000vbb.googlegroups.com.= .. > >> On Jan 6, 3:11 pm, "J-P. Rosen" wrote: > > >> >[snip] > >> >> In Ada, we favour the reader over the writer, don't we? > > >> >Not necessarily, with the advent of expression functions!! ;-) > > >> Huh? An expression function is just a shorthand for writing a simple > >> function; it argubly easier to read because it has less noise. "begin"= "end" > >> "return" don't add much information here, and you still can add the > >> whitespace if you think it helps readability. > > >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0Randy. > > >http://groups.google.com/group/comp.lang.ada/browse_frm/thread/4bb123... > > It's always been possible to write Ada that won't get past a code review! True, but I've never seen anything like this before... ...I did see one chap trying to write COBOL in Ada! All variables in a "Data Division" - no matter what the required scope was. Testament to Ada was that his code work! Hideously inefficient, but working!! -- Martin