home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / misc / 3824 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.9 KB  |  47 lines

  1. Newsgroups: comp.lang.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter
  3. From: peter@ferranti.com (peter da silva)
  4. Subject: Re: Indirection
  5. Message-ID: <id.CU4V.1T2@ferranti.com>
  6. Organization: Xenix Support, FICC
  7. References: <Bxv2t2.4FH@mentor.cc.purdue.edu> <id.GT2V.7OE@ferranti.com> <Bxyut0.Jo@mentor.cc.purdue.edu>
  8. Date: Fri, 20 Nov 1992 18:14:41 GMT
  9. Lines: 36
  10.  
  11. In article <Bxyut0.Jo@mentor.cc.purdue.edu> hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  12. > In article <id.GT2V.7OE@ferranti.com> peter@ferranti.com (peter da silva) writes:
  13. > >Personally, I think that making indirection a prefix operator was a bigger
  14. > >mistake than any of these.
  15.  
  16. > Certainly not from the standpoint of English speakers.
  17.  
  18. Hackercentrism you us of accuse you Anglocentrism of guilty are but.
  19.  
  20. IF YOU-WANT A-PROGRAMMING-LANGUAGE DESIGNED-FOR-ENGLISH YOU-KNOW
  21.    WHERE-TO-GET-IT.
  22. MODIFY HERMAN-RUBIN TO PROCEED TO COBOL.
  23.  
  24. > As I understand it,
  25. > *x in C denotes the object referred to by x, the object "found" AT x.  Thus,
  26. > @x would have been at least a somewhat logical notation, at least relatively
  27. > easily understood by users, as well as easy for parsing, etc.
  28.  
  29. Yes, but it makes for extra silly syntax (postfix indirection obviates the
  30. need for ->), and makes expressions that use other indirection operators
  31. (which are all postfix: [] and ()) much more complex:
  32.  
  33.     a = *((*f)()->baz[0]);
  34. Instead of:
  35.     a = f@()@.baz[0]@;
  36. or my preferred:
  37.     a = f^()^.baz[0]^;
  38.  
  39. I agree that C uses too many symbols, by the way. AND, OR, NOT, XOR, DIV,
  40. and MOD make more sense in many ways. I would not want to use /\ and \/
  41. unless you changed the escape character. I detest BEGIN and END.
  42. -- 
  43. Peter da Silva / 77487-5012 USA / +1 713 274 5180
  44. true(<<VV$@\\$'&O 9$O%'$LT$&$"V6"$&$<4$?'&$ #I&&?$=$<<@)24 24 scale 3 21 moveto
  45. {dup 36 eq{pop not}{dup 7 and 4 sub exch 56 and 8 div 4 sub 2 index{rlineto}{
  46. rmoveto}ifelse}ifelse}forall stroke pop showpage % Har du kramat din varg idag?
  47.