Re: First C Program
Barbara Morris <[email protected]>
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <[email protected]> |
On 2014-04-03 06:38, Frank Kolmann wrote: Hi Frank, I have been thinking about the use of macros such as EQ, forever, NE etc, and I think you are doing yourself a disservice by using these macros as a beginner C programmer. Here are some of the reasons: You will find it less easy to read "normal" C code if you don't get used to seeing *and quickly interpreting* things like != == for(;;) You will find it more difficult to incorporate code that you find on the web. You will have to either change all the == and != to use your macros, or perhaps even worse, you will have a mixture of EQ and ==. You will not be able to post snippets of code to forums without replacing your macros. I wouldn't post weird code like that to any forum even with an explanation for what the macros mean. The discussion would almost certainly be more about the use of the macros than about whatever question you were trying to ask. -- Barbara -- This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/c400-l or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/c400-l.