Re: [dwm] malloc'ed client in manage()

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Mon, 8 Sep 2008 09:35:12 +0200

On 9/8/08, markus schnalke <meillo_AT_marmaro.de> wrote:
> [2008-09-07 21:24] Filippo Erik Negroni <f.e.negroni_AT_googlemail.com>
>>
>> Code that sucks less is code that compiles for many years to come, and
>> strives for maximum portability, within reason.
>
> ... or is it code that's easy to understand and therefor easy to
> maintain?
>
>
> Pike and Kernighan call it:
> simplicity --- clarity --- generality

relying on pointer 0 == integer 0 is simple and general
(more general than relying on c99 not to mention posix, x11, ..)

but if we really care about obscure 30 year old cpus (other than x86
:)) then i'd go with my solution: c = malloc(); and *c = (Client){};
Received on Mon Sep 08 2008 - 07:35:12 UTC

This archive was generated by hypermail 2.2.0 : Mon Sep 08 2008 - 07:36:04 UTC