lkml.org 
[lkml]   [2011]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] linux/string.h: Introduce streq macro.
On Tue, Apr 26, 2011 at 03:49:49PM -0300, Thiago Farina wrote:
> This macro is arguably more readable than its variants:
> - !strcmp(a, b)
> - strcmp(a, b) == 0

Strongly NACKed. As far as I'm concerned, it's in the same shitbucket as
bcopy(3), bzero(3) et.al. Use idiomatic C; extensions of that kind are
*bad*, since new developers have to learn them.


\
 
 \ /
  Last update: 2011-04-27 18:49    [W:0.150 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site