Path: utzoo!attcan!uunet!bu.edu!snorkelwacker!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rochester!udel!carroll From: carroll@udel.edu (Mark Carroll ) Newsgroups: comp.lang.misc Subject: Re: Algol, and language design Message-ID: <25767@nigel.udel.EDU> Date: 27 Jul 90 01:16:25 GMT References: <25630@cs.yale.edu> <58091@lanl.gov> <1990Jul26.024449.1777@esegue.segue.boston.ma.us> <2406@l.cc.purdue.edu> Sender: usenet@ee.udel.EDU Reply-To: carroll@udel.edu (Mark Carroll ) Organization: University of Delaware Lines: 84 In article <2406@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes: ]> ]> How about nested scopes and recursion? I find them handy from time to time. ] ]Nested scopes of DO loops are present in Fortran. Mathematicians have used ]recursion for ages, and the problems with implementing recursion in the ]architecture of the time were horrendous. Frankly, some of them still are. ]What language allows carrying globals in registers across recursion? ] I'm sure that everyone and his brother is going to jump on you for this, but I'll join the bandwagon. This post is SO full of blatant proofs that you know very little about language design. I don't mean to turn this into a personal attack - but I really think that perhaps, as a statistician, you should realize that you aren't an expert on computer language design. Anyway, the really big error in the above quoted paragraph is the statement "Nested scopes of DO loops are present in Fortran." I don't think you understand what we mean by nested scopes. A scope is the region across which a variable declaration or binding is valid. In Fortran code, within the main program, a variable is either declared or not, for the entire body of the main program, that is, the scope of any variable in the main program is the entire main program. Now, to show you a nested scope, I'll jump into C: { int i=; int j=; ..code section 1.. while (i -- |Mark Craig Carroll: |"We the people want it straight for a change; |Soon-to-be Grad Student at| cos we the people are getting tired of your games; |University of Delaware | If you insult us with cheap propaganda; |carroll@dewey.udel.edu | We'll elect a precedent to a state of mind" -Fish