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,35d52809fb2aac8f X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Naming convention to identify functions with side effects Date: Sat, 11 Oct 2008 17:05:13 +0100 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> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net SECLHC+dycvNjpcJWAbaJg/laVMQODN54lPu2VRY1E91I4LAQz Cancel-Lock: sha1:n9n5MnXhFWsYnmlGaw3Z3i80+m0= User-Agent: Microsoft-Entourage/12.12.0.080729 Thread-Topic: Naming convention to identify functions with side effects Thread-Index: AckruySe65N2BPHMZUu0O6RQM6baiA== Xref: g2news1.google.com comp.lang.ada:2329 Date: 2008-10-11T17:05:13+01:00 List-Id: On 11/10/2008 12:32, in article d032eee0-fbaf-43f4-a18d-9cdf9aeee7d3@b38g2000prf.googlegroups.com, "Marco" wrote: > On Oct 4, 6:05 am, "(see below)" wrote: >> On 04/10/2008 13:30, in article >> d49286ef-faa1-4b1b-8e23-0ed80c015...@p10g2000prf.googlegroups.com, "Marco" >> >> wrote: >>> 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. >> >> These are not "side-effects", they are just effects. >> The whole point of using computers is to cause changes of state. > > http://en.wikipedia.org/wiki/Side_effect_(computer_science) > > the functional programming folks would disagree with your "whole point" I had a very distinguished group of them as colleagues for nearly 15 years, so I am only too aware of their profound misunderstanding of what computers are actually for. -- Bill Findlay chez blueyonder.co.uk