Re: [dwm] Fwd: [hackers] separated layout-specific stuff...

From: markus schnalke <meillo_AT_marmaro.de>
Date: Sat, 11 Aug 2007 15:11:11 +0200

Jeroen Schot <schot-dwm_AT_a-eskwadraat.nl> wrote:
> On Sat, Aug 11, 2007 at 07:52:46AM -0500, Kurt H Maier wrote:
> > Two #include lines make a file "ugly"? How so?
>
> It's not about the number of lines, it's about the concept. When I add a
> layout (say 'gridmode') it will look:
>
> #include "tile.h"
> #include "float.h"
> #include "gridmode.h"
> #define LAYOUTS \
> static Layout layout[] = { \
> /* symbol function */ \
> { "[]=", tile }, /* first entry is default */ \
> { "><>", floating }, \
> { "[#]", gridmode }, \
> };
>
> Looks pretty redundant/useless to me, which I find ugly :)

I think that looks clear ... but there is redundance, yes.

meillo
Received on Sat Aug 11 2007 - 15:11:46 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:48:55 UTC