Hacker News new | ask | show | jobs
by jvanenk 4577 days 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-functiona...
3 comments

Isn't this just a simplified version of Cheney on the MTA? (http://home.pipeline.com/~hbaker1/CheneyMTA.html)
The book Modern Compiler Implementation in C has a very functional style, written in 1997
There 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.)
OT but I've never seen anyone write semicolons that way in C.
Commas?

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();
Yeah, commas.