Messages in this thread | | | Date | Tue, 15 Dec 2009 19:12:20 +0000 | From | Al Viro <> | Subject | Re: [PATCH 0/1] Constify struct address_space_operations for 2.6.32-git-053fe57ac v2 |
| |
On Mon, Dec 14, 2009 at 08:00:49AM -0800, Arjan van de Ven wrote: > On Mon, 14 Dec 2009 12:26:56 +0100
> I for one am not opposed to using const where we could be using const. > It's a fundamental language feature, that helps the compiler and > developer. Yes there is sparse, and no, almost nobody uses that.
And as just about any language feature it can be used to make the thing less readable.
Note that marking a pointer to method table as pointer to const is just fine; nobody AFAICS has any problems with that. It's "let's make pointers to methods themselves const" that gets flamed.
| |