4 ms·
> C is small and simple and I can fit the whole language in my brain Except when you see Duff's device for the first time and realize that C you thought you kn
by huhtenberg 15y ago
> C is small and simple and I can fit the whole language in my brain
Except when you see Duff's device for the first time and realize that C you thought you knew what's the actual C :)
http://catb.org/jargon/html/D/Duffs-device.html http://catb.org/jargon/html/D/Duffs-device.html
- jmj42 15y agoThis was exactly my first thought. C fits in my brain. On Duff's device. My thought, the first time I saw it, was "brilliant!"
- jlarocco 15y agoMeh, Duff's device works in C++, too. If anything, it's an argument against both languages.
- Jach 15y agoGo one step further and use Duff's Device to implement coroutines! http://webcache.googleusercontent.com/search?q=cache:pA85c1UFn-4J:www.chiark.greenend.org.uk/~sgtatham/coroutines.html http://webcache.googleusercontent.com/search?q=cache:pA85c1U...
- DiabloD3 15y agoDear HN: Please give me more upvotes per comment Signed, people who are truly impressed by this absurd abuse of C