In the Octave interpreted language the name of an m-file and the name of the function contained within should match. This makes sense to me. Should we extend that naming convention to C++ files which contain classes?
While I was updating code I found that the file
liboctave/numeric/oct-passwd.h contains the class
password rather than the class
passwd. This doesn’t seem useful to me as file names can be pretty arbitrarily long these days so naming the file
oct-password.h would be clearer.
EDIT: I added a recommendation on naming files to the C++ coding guidelines on the Wiki. See C++ style guide - Octave.