Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756469AbXJXCpl (ORCPT ); Tue, 23 Oct 2007 22:45:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754589AbXJXCpc (ORCPT ); Tue, 23 Oct 2007 22:45:32 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:59442 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752851AbXJXCpb (ORCPT ); Tue, 23 Oct 2007 22:45:31 -0400 Date: Tue, 23 Oct 2007 19:45:27 -0700 From: Andrew Morton To: Matthew Wilcox Cc: Linus Torvalds , linux-kernel@vger.kernel.org, Matthew Wilcox Subject: Re: [PATCH 1/4] stringbuf: A string buffer implementation Message-Id: <20071023194527.4ac1dc85.akpm@linux-foundation.org> In-Reply-To: <20071024023035.GV27248@parisc-linux.org> References: <1193173966-3550-1-git-send-email-matthew@wil.cx> <20071024023035.GV27248@parisc-linux.org> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 20 On Tue, 23 Oct 2007 20:30:35 -0600 Matthew Wilcox wrote: > It's a matter of taste ... some people prefer to use accessors for > everything, other people prefer to expose the underlying structure > directly. Experience tells us that when you use accessors you end up thanking yourself later on. Especially when diddling struct page ;) Although one really should make a best-effort guess at "how likely is this to change in the future". If the implementation-to-be-copied has been out there for a while then "not very" is a good answer. But hey, don't listen to me - I like C++, and approve of Java. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/