🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #5730

Re: Tech Magazines, a suggestion

#5730
From: Jason Leigh
Date: Mon, 12 Sep 1988 03:59
30 lines
2069 bytes
Wade writes:
        Hmmm...

        I used to program in PASCAL alot.  In fact, while I was at UCSD, this
was the only upper level language used in the C.S. dept.   Had to write an
Ada compiler in Berkley PACAL :^(.

        What is wrong with useing a simple function to concat your two
strings  There are many string manipulation funtions provided in Benchmark
Modula-2, and it is easy enough to deal with these things without them anyway.

        The problem with using the "+" operator to concatinate strings is that
it genrates sloppy code, which is why it is not a part of modern languages. 
It was one of many things included in PASCAL to make teaching programming
easier, but has no place in proffesional code.  What happens when you 
concatinate two strings and the destination is too short to hold the result?
----------------------------------------------------------------


I do not agree with your notion that using a '+' to concat two strings
causes 'sloppy' code.  Such an allowance is called 'overloading' which
is a concept availabe on most modern object oriented programming languages
such as Ada and C++.  The purpose of overloading is to enhance the 
readability of code by hiding as much unnecessary information as possible.
I am surprised that after having written an Ada compiler, you never came
across overloading...

Send replies to this net or u-jleigh@ug.utah.edu
Jason Leigh
University of Utah
Technical Details
Message-ID: <2854@utah-gr.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!utah-gr!sundial.utah.edu!u-jleigh
References: <Sep.9.10.47.55.1988.5061@topaz.rutgers.edu> <624@sas.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!utah-gr!sundial.utah.edu!u-jleigh
From: u-jleigh%sundial.utah.edu@utah-gr.UUCP (Jason Leigh)
Newsgroups: comp.lang.misc,comp.sys.misc,comp.sys.amiga,comp.sys.mac,comp.sys.atari.st,comp.sys.ibm.pc,rec.mag
Subject: Re: Tech Magazines, a suggestion
Keywords: fanzine
Message-ID: <2854@utah-gr.UUCP>
Date: 12 Sep 88 03:59:05 GMT
References: <Sep.9.10.47.55.1988.5061@topaz.rutgers.edu> <624@sas.UUCP>
Sender: news@utah-gr.UUCP
Reply-To: u-jleigh%sundial.utah.edu.UUCP@utah-gr.UUCP (Jason Leigh)
Distribution: na
Organization: University of Utah CS Dept
Lines: 30