Path: utzoo!attcan!uunet!aplcen!unmvax!pprg.unm.edu!topgun!mustang!nntp-server.caltech.edu!seismo.gps.caltech.edu!bruce From: bruce@seismo.gps.caltech.edu (Bruce Worden) Newsgroups: comp.lang.c Subject: Re: long identifiers Keywords: identifiers Message-ID: <1990Oct25.182246.27505@nntp-server.caltech.edu> Date: 25 Oct 90 18:22:46 GMT References: <15953@csli.Stanford.EDU> <487@taumet.com> <15959@csli.Stanford.EDU> <272477A0.6845@tct.uucp> <1925@tuvie> Sender: bruce@seismo.gps.caltech.edu (Bruce Worden) Organization: California Institute of Technology, CA Lines: 27 Nntp-Posting-Host: sis.gps.caltech.edu hp@vmars.tuwien.ac.at (Peter Holzer) writes: > [ .... ] [ from Henry Spencer's Ten Commandments... ] >9. Thy external identifiers shall be unique in the first six > characters, though this harsh discipline be irksome and the > years of its necessity stretch before thee seemingly without > end, lest thou tear thy hair out and go mad on that fateful > day when thou desirest to make thy program run on an old system. > >IMHO you should write your program readable, and long identifiers add a lot >to readability. Restricting identifier names to 6 characters is a BUG and >not a FEATURE, and I think you should work around bugs only if you encounter >them. I don't think Mr. Spencer is trying to tell you to restrict your identifiers to six characters, but to make them unique in the first six characters. (I think that because that is exactly what he wrote.) So: int this_here_function(); is okay as long as you don't have int this_here_other_function(); in the same program. -------------------------------------------------------------------------- C. Bruce Worden bruce@seismo.gps.caltech.edu 252-21 Seismological Laboratory, Caltech, Pasadena, CA 91125