home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.8bit
- Path: sparky!uunet!boulder!ucsu!spot.Colorado.EDU!hill
- From: hill@spot.Colorado.EDU (Michael Hill)
- Subject: Re: C vs Action!
- Message-ID: <1993Jan26.163159.14869@ucsu.Colorado.EDU>
- Sender: news@ucsu.Colorado.EDU (USENET News System)
- Nntp-Posting-Host: spot.colorado.edu
- Organization: University of Colorado, Boulder
- References: <cciyXB9w165w@cyberden.sf.ca.us>
- Date: Tue, 26 Jan 1993 16:31:59 GMT
- Lines: 73
-
- In article <cciyXB9w165w@cyberden.sf.ca.us> phbill@cyberden.sf.ca.us writes:
- >God, Action! is such a cool language! :) I've been comparing C (which
- >I'll soon be independantly studying on IBMs at school) with it, and it's
- >such a nicer, cleaner, easier to read language.
- >
- >Well, at least the way I program. I've seen some Action! programs that
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- >waste a lot of space with indents and the such, but compared to C, it's
- >far easier reading. (In C, for example, you'd say "If(h<1)h=1;" and in
- >Action!, you'd say "If H<1 Then H=1 Fi", or (if you redefined "Fi" to
- >something even more readable), it would look like this: "If H<1 Then H=1
- >EndIf"... Also, with C, if you have a "long If", that is, one that does
- >more than one command, you need those damned braces... sort of like
- >this:
- >
- >If(H<1)
- >{
- > H=1
- > O=O+1
- >}
- >
- >and..
-
- Feh. The underlined phrase may say it all. For my part, I've no patience
- with people who say, "I don't like C because it MAKES you do such & such."
- Baloney. Try:
-
- #define then {
- #define endif }
-
- main () {
- .
- .
- .
- if (h < 1) then h = 1
- endif
- .
- .
- .
- }
-
- For your second gripe, try:
-
- if (h < 1) h = 1, o = o + 1;
-
- Granted, that won't work for all complex if's, but it works for small
- stuff like the above example.
-
- >I dunno.. just call me a BASIC lover, but I just happen to think
- >Action! is a far easier language.
-
- That's okay... like you say below, it's "because I don't know C yet".
- I believe C is a very elegant language. Sure, an idiot can still write
- crap code in it; but that's a reflection on the programmer, not on the
- language.
-
- >>No< idea on how to use it... but that's just because I don't know C..
- >yet)
- >
- >:)
-
- :^) Don't take this as a flame; take it as a learning experience! :^)
-
- --Michael
-
- -------------------------------------------------------------------------------
- Michael Hill <>< Isaiah 9:6 | "Let's not pretend to justify
- hill@spot.Colorado.EDU | Rather amend where treasures lie
- | Straight through the heart peace can be found
- University of Colorado@Boulder | That's where you start, not all around"
- $ mv net.flames /dev/null | -- Extreme, "Rest in Peace"
- -------------------------My boss is a Jewish carpenter!------------------------
- Did you ever notice that everybody in favor of abortion has already been born?!
-