11 ms·
A friend of mine wrote something up on this technique a while ago: http://spin.atomicobject.com/2012/11/01/hey-c-is-a-functional-language-too/ http://spin.atomi
by jvanenk 13y ago
A friend of mine wrote something up on this technique a while ago: http://spin.atomicobject.com/2012/11/01/hey-c-is-a-functional-language-too/ http://spin.atomicobject.com/2012/11/01/hey-c-is-a-functiona...
- justinhj 13y agoThe book Modern Compiler Implementation in C has a very functional style, written in 1997
- silentbicycle 13y agoThere are editions of the book using ML and Java. Since Andrew Appel is involved with SML/NJ, the ML edition is most likely the original. (The ML one is also quite good.)
- apgwoz 13y agoIsn't this just a simplified version of Cheney on the MTA? (http://home.pipeline.com/~hbaker1/CheneyMTA.html http://home.pipeline.com/~hbaker1/CheneyMTA.html)
- adamnemecek 13y agoOT but I've never seen anyone write semicolons that way in C.
- jonhohle 13y agoCommas? Personally, I'm never a fan of punctuation first formatting styles - though I give some exception for dot (.) first method calls in fluent interfaces for C-family languages. someInterface .thatCan() .chain() .itsCalls();
- adamnemecek 13y agoYeah, commas.