
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 29 May 2008 11:10 am, Beman Dawes wrote:
The rest of the names look OK to me except for is_regular, which should be is_file. That name seems overthought and "regular" has all kinds of other connotations.
I'm not particularly fond of is_regular either. The problem with is_file is that some people argue it should be true for directories. I could get talked into is_file, if others support that and will help dealing with those who think of directories as files. Or maybe some other name could be found. is_regular_file()? Although longer, that seems clearer.
I'd go with is_regular_file over is_file. In unix, everything is a file: regular files, directories, fifos, character and block devices, sockets, etc (I assume is_regular returns false for most of those?). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIPsuH5vihyNWuA4URApwKAJ41hFqt6HiXtCIfObOkqoR/PpVF3wCfalVt /Ujnywts8UIbUpJP+xXaCEo= =7WWN -----END PGP SIGNATURE-----