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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.nethere.com!news.nethere.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 19 Apr 2016 15:32:21 -0500 Newsgroups: comp.lang.ada Subject: Re: if-then-no-else Programming From: csampson@inetworld.net (Charles H. Sampson) Date: Tue, 19 Apr 2016 13:32:20 -0700 Message-ID: <1mlyg6h.1ppizdz1w8c0ttN%csampson@inetworld.net> References: <1mlx1gf.ebrae11jak5tyN%csampson@inetworld.net> User-Agent: MacSOUP/2.8.3 (Mac OS X version 10.5.8 (PPC)) X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-C9KuXwnFU0ICosq1zCibS/ye0ic1Fee6obElwoJeaZALFwdG9zyUtb+9SKwByacjTmfp/SsWshYtGfI!lyf2VBB+ZBmFW5gv31CmBMJOVVps7ugXafkDT+5AiRoyJac8earW4SMm6HdFF8CHGxxhjvy+fXSY!wzIC2z6mHUY5oiGzOmQIpbRLM+/CvrE= X-Complaints-To: abuse@nethere.com X-DMCA-Complaints-To: abuse@nethere.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2419 Xref: news.eternal-september.org comp.lang.ada:30201 Date: 2016-04-19T13:32:20-07:00 List-Id: Charles H. Sampson wrote: > It's hard to believe that it's been over six years since I wrote a line > of code for profit. If what my son tells me, there's been what I > consider a major change in software engineering during that time. > > He says that there's a move to ban the use of the else-statement. The > preferred approach is to execute the else-part first, then change the > effect if the if-condition is satisfied. For example: > > Variable := 3; > if then > Variable := 1; > end if; > > In addition to some other goodness attributes, this is supposed to be > clearer than the if-then-else form. > > Is he right? (He's not really a coder. His experience is in wire-frame > animation but he's being forced into coding by the job market.) If he's > not right, have any of you even heard of an area of the software > "profession" where this position is held? Thanks to all who applied. Everybody seems to be as appalled as I am about this idea. And you came up with one or two negative impacts that I hadn't thought of yet. Charlie -- Nobody in this country got rich on his own. You built a factory--good. But you moved your goods on roads we all paid for. You hired workers we all paid to educate. So keep a big hunk of the money from your factory. But take a hunk and pay it forward. Elizabeth Warren (paraphrased)