Just Wondering

Peter da Silva peter at ficc.uu.net
Mon Apr 24 23:32:16 AEST 1989


In article <1126 at ptolemy.arc.nasa.gov>, raymond at ptolemy.arc.nasa.gov (Eric A. Raymond) writes:
> I agree that they improve your namespace, but not in any usable way.
> (Sort of like the big gear/little gear combinations on a bike.  You
> can use them, but it's not a good idea.)  Although its debatable, I
> feel its bad style to use the same name (in diffrent cases) for
> different purposes within a program.

You mean this is evil and rude:

BOOL framistan(file)
char *file;
{
	FILE *fp;

	if(!(fp = fopen(file, "r")))
		return FALSE;

	...

How about this:

#define Strlen(s) (s?strlen(s):0)

How about this:

: LOOP
  ?COMPILE
  3 ?MATCH
  COMPILE loop HERE - HERE ! ;
IMMEDIATE

How about homonyms?

BOOL boule(fyle)
char *fyle;
{
	FILE *fp;

	if(!(fp = fopen(fyle, "r")))
		return FALSE;

	...
-- 
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.

Business: uunet.uu.net!ficc!peter, peter at ficc.uu.net, +1 713 274 5180.
Personal: ...!texbell!sugar!peter, peter at sugar.hackercorp.com.



More information about the Comp.lang.c mailing list