From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2afd440a210c7fb0 X-Google-Attributes: gidf7344,public X-Google-Thread: 1014db,6bdc5c27a0dec527 X-Google-Attributes: gid1014db,public X-Google-Thread: 1164f8,df8a3dc583bf1f5f X-Google-Attributes: gid1164f8,public From: geest3+@pitt.edu (Gregg E Economou) Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Date: 1998/08/30 Message-ID: <6sagp1$hoi$1@usenet01.srv.cis.pitt.edu>#1/1 X-Deja-AN: 386060007 References: <0095000017115526000002L062*@MHS> <6s910k$2bo$1@Starbase.NeoSoft.COM> <35e833be.0@news.wizvax.net> <6sac4v$4ti$1@Starbase.NeoSoft.COM> Organization: University of Pittsburgh Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c Many people wouldn't think of eating fries without ketchup. However, none of those people would consider that the ketchup is a part of the fries beyond the fact that for them the fries arent consumed without the ketchup. But they can maintain the distinction in their minds. Now it is even convention to find ketchup where one finds fries- they usually even give you ketchup without asking when you buy fries. But nobody will think that fries cannot exist wihtout ketchup. In article <6sac4v$4ti$1@Starbase.NeoSoft.COM>, Jordan Henderson wrote: >I have to admit, I don't have the C standard at hand. However, I would >be surprised if the standard >required< that command line arguments be setup >by something "linked in". I believe that a conforming implementation >could have the compiler writing all the code into the user's program >necessary to perform this command line argument setup. > >I believe that a conforming implementation can write the code in-line >for any Standard Library call (and optimize based on this in-lining). >This seems to me to make the entire Standard Library part of the >"core language". > >I think that, conceptually, the handling of command line arguments is >part of the core language. What >is< part of the core language and what is >not? And what is your justification for the separation? Well, command line arguments is not part of the core language in C and though in some languages they are, why should they be? What is my justification for separation? Well, something as high-level as command line arguments assumes that all programs have command line invocations. Thats a weighty assumption. You presuppose that all programs need them even if they dont have them, and thats another outlandish assumption. Things like arguments is an operating-system-specific thing. Certainly the runtime environment of the particular OS will have a convention for such things as arguments, but thats where it should be handled, not in the language! The things in the standard C library are convenience routines. To demand that they be part of the language itself places the assumption into the language that those things are things that programs cannot exist without, and show a dsitinct narrowmindedness about what programs do and a lack of creativity in implementing them. Granted, usually all you need is some simple i/o and so on, but who says that i am going to do i/o at all? By first insisting that ketchup is a part of fries and then complaining that because ketchup is part of fries your life is miserable because you cant have mayo on them, you miss the entire point of fries, ketchup, and mayo being separate entities. Now, some settings will provide you with a fries&ketchup solution that is inseperable because theyve already stuck the ketchup into the fries, and some places do likewise with mayo or vinegar. What if i just want fries? What if i like mustard on them? Those package deal places are fine for some people. Their analogy, the typed languages, provide their restricitve constructs which give high-level abstractions. C allows you the opportunity to build a high level abstraction should you wish, but also lets you choose not to, and also provides the distincitve facet of opportunity in that you can build whatever high level abstraction you like wihtout limitation. You get the fries, and can not only choose mayo or ketchup or vinegar, but can also bring your own condiment, if you wish one. ok, lets end this. happy hacking, gregg