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.129.169 with SMTP id nx9mr902115pbb.8.1325931162901; Sat, 07 Jan 2012 02:12:42 -0800 (PST) Path: lh20ni152063pbb.0!nntp.google.com!news1.google.com!postnews.google.com!f11g2000yql.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 02:12:29 -0800 (PST) Organization: http://groups.google.com Message-ID: <50ec6d9a-5062-477f-826f-239fd2712a09@f11g2000yql.googlegroups.com> References: <26f343ea-d694-4089-b594-f32b471db3a4@m4g2000vbc.googlegroups.com> NNTP-Posting-Host: 86.163.248.186 Mime-Version: 1.0 X-Trace: posting.google.com 1325931149 31427 127.0.0.1 (7 Jan 2012 10:12:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 7 Jan 2012 10:12:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f11g2000yql.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-07T02:12:29-08:00 List-Id: 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" "e= nd" > "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/4bb12335caa3= 231a/91a870f32263ab04?lnk=3Dgst&q=3Denjoying#91a870f32263ab04 :-O -- Martin