Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!THINK.COM!gls From: gls@THINK.COM (Guy Steele) Newsgroups: comp.lang.scheme Subject: first programming languages, and second ones too Message-ID: <9002261902.AA01811@joplin.think.com> Date: 26 Feb 90 19:02:14 GMT References: <9002221434.AA03515@schizo.samsung.com> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 28 Date: Wed, 21 Feb 90 09:39:47 EDT >From: gjc@mitech.com There are more obvious practical and commercial advantages to knowing the language C rather than Pascal, so I would think students would be better served learning and using that language as a second language after Scheme. * with a reasonable ANSI compiler supporting prototypes, and especially one that supports a "require-prototypes" compilation flag, it seems you get about as much strict type checking out of a C program as out of an equivalent program in Pascal. Hm. And none of that nasty array-bounds checking that costs so many cycles. Much better to let machines crash or behave strangely. See, for example, the mailer buffer overflow bug recently discoverec at Stanford (ACM SIGSOFT Software Engineering Notes 15, 5, January 1990, page 7, item "Risks of Mail"). * C has more modern/natural I/O primitives, not the funny ancient mainframe O/S oriented stuff in standard Pascal. Double hm. You mean like "gets", which made possible parts of the Morris worm? ... --Guy :-)