home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / perl / 7629 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.1 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!olivea!hal.com!bang.hal.COM!not-for-mail
  2. From: landman@hal.COM (Howard Landman)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: In 5.0, are we gonna get...
  5. Message-ID: <1ht5mpINN7s2@bang.hal.COM>
  6. Date: 30 Dec 92 21:52:25 GMT
  7. References: <1992Dec14.043835.23009@reed.edu> <1992Dec14.192007.7534@wdl.loral.com>
  8. Organization: HaL Computer Systems, Inc.
  9. Lines: 16
  10. NNTP-Posting-Host: bang.hal.com
  11.  
  12. In article <1992Dec14.192007.7534@wdl.loral.com> mab@wdl39.wdl.loral.com (Mark A Biggar) writes:
  13. >Larry has talked about adding a 'reduce' operator that
  14. >calls a special sort like function (used $a,$b for arg passing) on each element 
  15. >of a list for doing summations like so:
  16. >
  17. >    $sum = reduce {$a+$b} 1,34,$x,45,-8,0.1;
  18.  
  19. You should look at the way this sort of thing is handled in data-parallel
  20. languages, such as those for programming the Connection Machine.  C* is
  21. probably the closest to Perl in flavor.  It's very clean and natural.
  22.  
  23. The only difficulty I can see is a potential conflict with the current behavior
  24. of arrays in a scalar context.
  25.  
  26.     Howard A. Landman
  27.     HaL Computer Systems
  28.