Re:Hasp: An S-Expression to Haskell Compiler
by lubutu on Sunday February 26, 2012 @07:58AM
(#3635526)
And what of Lisp, of which most dialects have mutable state? If a Lisp compiler would convert to genuine λ-calculus it would be as large a step as it would for C.
[ Parent
| on HN ]
Re:Hasp: An S-Expression to Haskell Compiler
by DanWaterworth on Sunday February 26, 2012 @12:52PM
(#3636146)
If you would re-read my comment, you'll find that I didn't actually say I agree that all functional languages are syntactically sweetened lambda calculus, though I certainly said Haskell was.
My point was that although there are functional languages that are syntactic sugar over the lambda calculus, I don't know of any imperative languages (and in fact it would not make sense to design an imperative language) that is syntactic sugar over turing machine code.
I should have made my position clearer. I do agree that compiling any non-pure functional language via lambda calculus is a fruitless endeavor.