From: Bruno H. <br...@cl...> - 2017-09-10 14:20:34
|
Hi Sam, > > #define fprint(fp,string) fputs(string,fp) > > #define print(string) fputs(string,stdout) > > I don't like this for 2 reasons: > > 1. I am opposed to gratuitous deviations from the standard coding > practices because they raise the barrier to entry for new people. I understand the "barrier to entry for new people" argument. But in this case I found it worth it. > 2. I prefer names that are not substrings of other names for the sake of > grepping convenience. E.g., I would use `cprint` instead of `fprint' and > `cputs` instead of `print` ("c" stands for CLISP &c) You can use the grep option '-w' to search for 'print' only: $ grep -w print *.d $ grep -w 'print *(' *.d Bruno |