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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,35d52809fb2aac8f X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!p10g2000prf.googlegroups.com!not-for-mail From: Marco Newsgroups: comp.lang.ada Subject: Re: Naming convention to identify functions with side effects Date: Sat, 4 Oct 2008 05:30:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <5654ee5f-aa9f-4fff-87e0-45854b850f26@y38g2000hsy.googlegroups.com> <29ac62e1-78da-4048-ad95-8f88a29f7d31@z6g2000pre.googlegroups.com> <48e13f14$0$6610$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 68.63.182.214 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1223123422 3426 127.0.0.1 (4 Oct 2008 12:30:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 4 Oct 2008 12:30:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p10g2000prf.googlegroups.com; posting-host=68.63.182.214; posting-account=WITAxQkAAAAHjnLda9Lofpqp8mERTWL4 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7955 Date: 2008-10-04T05:30:22-07:00 List-Id: On Oct 3, 5:28 am, "Dmitry A. Kazakov" wrote: > Side-effects are bad in any subprograms, be them functions or procedures. Technically "side-effects" are being used whenever you change an internal state in a module, which is not always undesired. I think the proper expression is "unrelated side-effects are bad" which violates the Principle of Least Surprise.