Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932953Ab1D0XiQ (ORCPT ); Wed, 27 Apr 2011 19:38:16 -0400 Received: from li9-11.members.linode.com ([67.18.176.11]:47738 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760332Ab1D0XiM (ORCPT ); Wed, 27 Apr 2011 19:38:12 -0400 Date: Wed, 27 Apr 2011 19:38:00 -0400 From: "Ted Ts'o" To: "H. Peter Anvin" Cc: Steven Rostedt , Thiago Farina , linux-kernel@vger.kernel.org, Alexey Dobriyan , Rusty Russell , Ingo Molnar , "David S. Miller" , Al Viro , Christoph Hellwig Subject: Re: [PATCH] linux/string.h: Introduce streq macro. Message-ID: <20110427233800.GB5364@thunk.org> Mail-Followup-To: Ted Ts'o , "H. Peter Anvin" , Steven Rostedt , Thiago Farina , linux-kernel@vger.kernel.org, Alexey Dobriyan , Rusty Russell , Ingo Molnar , "David S. Miller" , Al Viro , Christoph Hellwig References: <1303926576.18763.75.camel@gandalf.stny.rr.com> <4DB86163.2070201@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DB86163.2070201@zytor.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on test.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 767 Lines: 24 On Wed, Apr 27, 2011 at 11:33:07AM -0700, H. Peter Anvin wrote: > > Because !strcmp() is idiomatic C. > > This is the same kind of stupidity as > > #define BEGIN { > #define END } > > It doesn't matter if it is more readable *to you*... learn the language, > please. Interesting bit of trivia: This sort of nonsense[1] is what inspired the the International Obfuscated C Code Contest[2]. :-) [1] http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh/mac.h [2] http://www.ioccc.org/faq.html - Ted -- 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/