🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #1675

Re: C's sins of commission

#1675
From: Eric Pepke
Date: Wed, 10 Oct 1990 17:23
29 lines
1978 bytes
In article <2884@igloo.scum.com> nevin@igloo.scum.com (Nevin Liber) writes:
> In article <5088@uqcspe.cs.uq.oz.au> brendan@batserver.cs.uq.oz.au 
writes:
> >The percieved need for
> >side-effects in terms is merely a by-product of the poor state of 
language
> >design, and would not be missed at all in better languages.
> 
> I disagree.  This would throw out all functions which maintain their
> own state (eg: i/o).

It would throw out *all* output, with or without internally readable state 
information.  Setting a certain pixel to a certain color is a side effect, 
as is making a UART spit out a character, as is sending a packet out over 
the net.

There are good reasons to limit the kinds of side effects and their scope 
and to provide protections from unwanted interactions, but to say "no side 
effects" is absurd.  People do more with programs than prove them correct. 
 Occasionally they actually run them on physical machines, and it's 
sometimes kind of fun to have them produce output of some sort.

Eric Pepke                                    INTERNET: pepke@gw.scri.fsu.edu
Supercomputer Computations Research Institute MFENET:   pepke@fsu
Florida State University                      SPAN:     scri::pepke
Tallahassee, FL 32306-4052                    BITNET:   pepke@fsu

Disclaimer: My employers seldom even LISTEN to my opinions.
Meta-disclaimer: Any society that needs disclaimers has too many lawyers.
Technical Details
Message-ID: <1077@sun13.scri.fsu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!sdd.hp.com!uakari.primate.wisc.edu!uflorida!mailer.cc.fsu.edu!sun13!gw.scri.fsu.edu!pepke
References: <5006@uqcspe.cs.uq.oz.au> <64616@lanl.gov> <5088@uqcspe.cs.uq.oz.au> <2884@igloo.scum.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!sdd.hp.com!uakari.primate.wisc.edu!uflorida!mailer.cc.fsu.edu!sun13!gw.scri.fsu.edu!pepke
From: pepke@gw.scri.fsu.edu (Eric Pepke)
Newsgroups: comp.lang.misc
Subject: Re: C's sins of commission
Message-ID: <1077@sun13.scri.fsu.edu>
Date: 10 Oct 90 17:23:42 GMT
Sender: news@sun13.scri.fsu.edu
Organization: Florida State University, but I don't speak for them
Lines: 29
References: <5006@uqcspe.cs.uq.oz.au> <64616@lanl.gov> <5088@uqcspe.cs.uq.oz.au> <2884@igloo.scum.com>