On Wed, Jun 30, 2010 at 4:10 PM, Randy MacDonald <[email protected]> wrote: > > the "ideal" programming language was basically Fortran. > > I wondered how the problem of adding up a list of numbers was tackled. > Once you see +/ it is near impossible to un-see it, and that is just a > single example out of a vast space. > > I read further, and see use of a FORALL construct, (each, anyone?) which > _still_ takes 6 lines, and almost a dozen counter variables. This was > one line of APL, in. the. 70s.
Doesn't modern fortran have some improvements specifically about array operations which allow you to add two arrays elementwise or take the sum of an array? I don't know how good they are though. Ambrus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
