home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21150 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.6 KB

  1. Xref: sparky comp.sys.mac.programmer:21150 comp.sys.mac.oop.misc:209
  2. Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!usc!cs.utexas.edu!tamsun.tamu.edu!tamsun.tamu.edu!news
  3. From: bpb9204@tamsun.tamu.edu (Brent Burton)
  4. Newsgroups: comp.sys.mac.programmer,comp.sys.mac.oop.misc
  5. Subject: Re: David Betz and Bob Language
  6. Date: 10 Jan 1993 21:32:32 -0600
  7. Organization: Texas A&M Univ., Inc.
  8. Lines: 29
  9. Message-ID: <1iqpogINNk5q@tamsun.tamu.edu>
  10. References: <01050133.mp32gx@distant.uucp> <1i886lINNg1v@tamsun.tamu.edu> <1993Jan8.090854.13216@netcom.com>
  11. NNTP-Posting-Host: tamsun.tamu.edu
  12.  
  13. gort@netcom.com (george harrington) writes:
  14. |In article <1i886lINNg1v@tamsun.tamu.edu> bpb9204@tamsun.tamu.edu (Brent Burton) writes:
  15. |>
  16. |> [... about passing LOTS of arguments to a function ...]
  17. |>Well, the stuff, for the most part, will work, but I can't put too much
  18. |>confidence into code that uses anticonventions like your above example.
  19. |>
  20. |Actually, this is the way functions are defined in unix shells; probably
  21. |the reasoning is to allow for a variable number of parameters. You 
  22. |would write 
  23. |   for i
  24. |   do
  25. |      some code here
  26. |   done
  27. |
  28. |and i would loop across all the parameters.
  29.  
  30. Point taken, but the shell programming technique is due to the
  31. environment.  The same technique, when used in a language such
  32. as C with features to *cleanly* access 10 or 50 arguments, just
  33. does not make good programming sense to me.  I consider it
  34. a kludge, and a sloppy one at that.
  35.  
  36. -Brent
  37. -- 
  38. +-------------------------+
  39. | Brent Burton    N5VMG   |    
  40. | bpb9204@tamsun.tamu.edu |  
  41. +-------------------------+ 
  42.