Re: Use (f)puts instead of (f)printf when possible.
Bruno Haible <[email protected]>
| Newsgroups | gmane.lisp.clisp.devel |
|---|---|
| Message-ID | <2101639.yV567bqaAa@omega> |
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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel