[Geany-devel] C++ file-type extensions

Colomban Wendling ban-ubuntu at xxxxx
Wed Jul 8 17:42:38 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Yves Pausch a écrit :
> Additionally I would like geany to handle all *.h as C++ header files
in the first place as they contain C++ more likely than C. If this
doesn't fit someone's use case so please switch to the C file-type
manually or by editing your local filetype_extensions.conf.
Sorry? .h files are C headers at the first place, and I don't think C
is uncommon. I write C, and many people still write C nowadays.
Moreover, there's C++ specific header extensions (H, hpp , …) that, I
think, should be used for every C++ headers, at least if they contains
C incompatibilities.
For my point of view, it seems obvious that .h should be kept as C
headers, and if C++ programmers uses .h for their C++ headers, they
"just" have to switch manually the filetype (or edit their
filetype_extensions.conf ;)) if the C filetype don't work.

I strongly think that .h is a C header extension and it should be kept
as so, moreover because C programmers can't use another extension for
their headers (and should not), then are penalized by default, but the
C++ programmers can use another extension (and, I think, should), then
are not penalized in all cases.

Regards,
Colomban
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpU2o4ACgkQyqbACDEjVWgvQgCgjjTjs+pYW/d7xVN8sdbC8gAm
jRUAnAwdKhZVPaRSJ6cVYQite3j3IIc3
=hfi+
-----END PGP SIGNATURE-----





More information about the Devel mailing list