Why not for variables? It makes a lot of sense of nothing else to avoid the confusion that invariably happens when someone decides to introduce the value 2 or -1 to an existing variable (and yes, thus has happened a number of times.)
Not to mention they take a single byte rather than four for an int if stored in memory. On March 10, 2014 7:24:49 PM PDT, David Miller <da...@davemloft.net> wrote: >From: Linus Torvalds <torva...@linux-foundation.org> >Date: Mon, 10 Mar 2014 19:02:18 -0700 > >> I would generally suggest that people only use "bool" for function >> return types, and absolutely nothing else. Seriously. > >I think it makes sense for function arguments too. -- Sent from my mobile phone. Please pardon brevity and lack of formatting. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/