geekchick: (evil computers)
geekchick ([personal profile] geekchick) wrote2007-07-20 01:20 am
Entry tags:

Re: Duff's Device

[identity profile] madbodger.livejournal.com 2007-07-21 04:20 pm (UTC)(link)
When I first read about Duff's Device, I had the immediate knee-jerk "NO! That is Bad and Wrong!"
reaction. Then I read it while thinking of the original K&R language design and realized that it
was a completely valid approach. The committe agrees with this.

Re: Duff's Device

[identity profile] adriang.livejournal.com 2007-07-24 12:15 am (UTC)(link)
Tom Duff, himself, showed an example of the device and wrote:
    Disgusting, no?

I think he also appreciates the same quality in it that you do. And yet, he makes a good case for using it, when appropriate. That's what makes this sort of gem so... delightful. 8-)

Adrian