From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-05-29 11:28:07
-----BEGIN PGP SIGNED MESSAGE-----
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)
-----END PGP SIGNATURE-----