home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / atari / 8bit / 5960 < prev    next >
Encoding:
Text File  |  1993-01-27  |  2.8 KB  |  86 lines

  1. Newsgroups: comp.sys.atari.8bit
  2. Path: sparky!uunet!boulder!ucsu!spot.Colorado.EDU!hill
  3. From: hill@spot.Colorado.EDU (Michael Hill)
  4. Subject: Re: C vs Action!
  5. Message-ID: <1993Jan26.163159.14869@ucsu.Colorado.EDU>
  6. Sender: news@ucsu.Colorado.EDU (USENET News System)
  7. Nntp-Posting-Host: spot.colorado.edu
  8. Organization: University of Colorado, Boulder
  9. References: <cciyXB9w165w@cyberden.sf.ca.us>
  10. Date: Tue, 26 Jan 1993 16:31:59 GMT
  11. Lines: 73
  12.  
  13. In article <cciyXB9w165w@cyberden.sf.ca.us> phbill@cyberden.sf.ca.us writes:
  14. >God, Action! is such a cool language! :)  I've been comparing C (which 
  15. >I'll soon be independantly studying on IBMs at school) with it, and it's 
  16. >such a nicer, cleaner, easier to read language.
  17. >
  18. >Well, at least the way I program.  I've seen some Action! programs that 
  19.  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  20. >waste a lot of space with indents and the such, but compared to C, it's 
  21. >far easier reading.  (In C, for example, you'd say "If(h<1)h=1;"  and in 
  22. >Action!, you'd say "If H<1 Then H=1 Fi", or (if you redefined "Fi" to 
  23. >something even more readable), it would look like this: "If H<1 Then H=1 
  24. >EndIf"...  Also, with C, if you have a "long If", that is, one that does 
  25. >more than one command, you need those damned braces...  sort of like 
  26. >this:
  27. >
  28. >If(H<1)
  29. >{
  30. >        H=1
  31. >        O=O+1
  32. >}
  33. >
  34. >and..
  35.  
  36. Feh.  The underlined phrase may say it all.  For my part, I've no patience
  37. with people who say, "I don't like C because it MAKES you do such & such."
  38. Baloney.  Try:
  39.  
  40. #define then {
  41. #define endif }
  42.  
  43. main () {
  44.     .
  45.     .
  46.     .
  47.   if (h < 1) then h = 1
  48.   endif
  49.     .
  50.     .
  51.     .
  52. }
  53.  
  54. For your second gripe, try:
  55.  
  56.   if (h < 1) h = 1, o = o + 1;
  57.  
  58. Granted, that won't work for all complex if's, but it works for small
  59. stuff like the above example.
  60.  
  61. >I dunno..       just call me a BASIC lover, but I just happen to think 
  62. >Action! is a far easier language.
  63.  
  64. That's okay... like you say below, it's "because I don't know C yet".
  65. I believe C is a very elegant language.  Sure, an idiot can still write
  66. crap code in it; but that's a reflection on the programmer, not on the
  67. language.
  68.  
  69. >>No< idea on how to use it... but that's just because I don't know C.. 
  70. >yet)
  71. >
  72. >:)
  73.  
  74. :^)  Don't take this as a flame; take it as a learning experience!  :^)
  75.  
  76.             --Michael
  77.  
  78. -------------------------------------------------------------------------------
  79. Michael Hill   <><  Isaiah 9:6 | "Let's not pretend to justify
  80. hill@spot.Colorado.EDU         |  Rather amend where treasures lie
  81.                                |  Straight through the heart peace can be found
  82. University of Colorado@Boulder |  That's where you start, not all around"
  83. $ mv net.flames /dev/null      |                    -- Extreme, "Rest in Peace"
  84. -------------------------My boss is a Jewish carpenter!------------------------
  85. Did you ever notice that everybody in favor of abortion has already been born?!
  86.